Check out example codes for "what is difference between java and javascript". It will help you in understanding the concepts better.

Code Example 1

java is virtualised and compiled while javascript isn't.
javascript and java aren't that similar apart from beign 
both OOP.

Code Example 2


Code Example 3

The scripts.

Learn ReactJs, React Native from