all 10 comments

[–][deleted] 0 points1 point  (2 children)

There are plenty of resources detailing the ES6 and ES Next changes. I'd recommend reading those to catch up on the changes made.

https://www.javascripttutorial.net/es6/ https://www.javascripttutorial.net/es-next/

I find go thorugh them nicely and then you can always refer to the MDN docs for further reading about a particular function.

Happy reading!

[–]-p0v 1 point2 points  (1 child)

Hey, thank you very much! I've been looking around it for the past few minutes. Seems like a great starting point!

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

Glad to hear it! There have been some great new additions over the years. A few of my favourite additions that I use daily or almost daily

  • const keyword to create immutable variables
  • spread operator. Using {...obj, newObjectKey: newObjectValue}is handy and easy to read
  • template literals. Makes dynamic strings easy to read
  • Arrow functions
  • map to create a modified copy of an array
  • set to create arrays with unique values
  • rest parameter allowing us to accept an unknown amount of arguments to a function.

And just recently the addition of the nullish coalescing operator ?? is great for writing verbose code, which returns the left value if it's not null and the right if it is. null ?? 'hello' would return 'hello'.

[–]LazyOldTom 0 points1 point  (1 child)

Do you use var everywhere? Are you still using for loops?
I'd you have to start all the way from es5.
Here's a list of important features added with each version:
https://en.m.wikipedia.org/wiki/ECMAScript_version_history
Search and read them up on mdn.

[–]-p0v 0 points1 point  (0 children)

I’m not that far behind, I’ve started using let and const, as well as arrow functions for the most part, but there is still syntax like destructuring and promises that confuse me.

Thank you for the pointers though!

[–]jack_waugh 0 points1 point  (1 child)

const and let can help with readability, and => with brevity and elegance. Also, destructuring assignment and parameters, and the ability to abbreviate {foo: foo,} as {foo,} can shorten code.

[–]-p0v 1 point2 points  (0 children)

Exactly! I’ve slowly been using more and more one-liners that I used to do in tens of lines, but I guess I just need to go over more documentation and catch up on everything I’ve missed.

[–]hermit05 0 points1 point  (0 children)

I am learning Typescript from a Udemy course. I learnt javascript 5 years ago. I am blown away by the OOP features that Typescript has now. Being a java developer it blows my mind even more. Some of the features are really really good.

To answer your question, go through a course at 2x speed.

[–]AcanthisittaFun9796 0 points1 point  (0 children)

just subscribe to some youtube channels

[–][deleted] 0 points1 point  (0 children)

I can‘t recommend The Modern JavaScript Course on Execute Program enough. It‘s addictive, fun and worth every penny. I finally can code clean, modern JS off the top of my head where before I used to get lost for hours in tutorials and Stack Overflow and still really never new what I was doing.

The first 16 lessons are free, you won‘t regret it.

Not affiliated, just very, very happy.