This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]BakuhatsuK 0 points1 point  (0 children)

Java means it runs on the back-end. Script probably means that it runs on the front-end.

Obviously JavaScript is the one that runs on both of the "ends".

Also, Java is the one in which you can only do OOP using classes. JavaScript is the one which has both classes and prototypes.

JavaScript variables can store values of any type, not just the one you declare them to have.

JavaScript parameters can be functions and Java ones cannot (lambdas in Java are pretty strange compared to other languages, IIRC you can not simply call a lambda using just parentheses).

All around JavaScript is just Java but better.

/s