r/javascript • • Apr 21 '15

Recruiters... JavaScript is NOT Java.

http://javascriptisnotjava.io/
380 Upvotes

162 comments sorted by

View all comments

3

u/corruption93 Apr 21 '15

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.

1

u/[deleted] Apr 21 '15

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.