Welcome to the JAVA part.
Here you have a lot of examples of JavaScripts.
I hope you'll have a good time.