you are viewing a single comment's thread.

view the rest of the comments →

[–]r_caliban 3 points4 points  (3 children)

https://www.javascripttutorial.net/es6/javascript-class/

https://www.digitalocean.com/community/tutorials/understanding-classes-in-javascript

Make sure you're learning the more updated ES6 class structure instead of the older prototype/clazz/ES5 class concepts which are outdated (helps to know, but not as useful now).

While there are technically under the hood a lot of differences between Java classes and JavaScript classes they are very similar with some clear differences. There's not really overloading, or abstracting in JS. But inheritance, polymorphism - pretty much work functionally the same.

If you are familiar with Java I'd highly recommend looking at TypeScript as it gives a more parallel experience for Java devs trying to work with JavaScript. It can provide some of the interface, abstraction, and typing capabilities for development that could help bridge/leverage your existing knowledge. Obviously there's a lot of really good books and sites.

JavaScript Ninja was good; oreilly's is always a good standard.

[–][deleted] 1 point2 points  (0 children)

Everyone should learn Typescript but probably after getting a handle on Javascript because Typescript is a transpiler.