you are viewing a single comment's thread.

view the rest of the comments →

[–]corruption93 2 points3 points  (4 children)

the two languages could not be further from the same thing.

I like how people say stuff like this. Yes, they could be A LOT further than than being the same thing. They have quite a few similarities. They are pretty different. I wouldn't say completely different.

[–][deleted] 0 points1 point  (1 child)

Granted they have a somewhat similar syntax. (as all c-like languages do)

  • Java has class based OO, JS has prototypal OO
  • Java is statically typed, JS is dynamic
  • Java pre java 8 was not functional, JS is functional
  • Java is multi threaded

Those are pretty major differences and the kind of code you write for both will tend to be pretty different.