9 Comments
User's avatar
Ravi Sankar SV's avatar

Awesome explanation, thank you 😃

Expand full comment
Petar Ivanov's avatar

Thank you for the feedback, Ravi!

Expand full comment
Akos Komuves's avatar

Thanks for covering these less-known but still super-important concepts, Petar!

Expand full comment
Petar Ivanov's avatar

🙌

Expand full comment
Laureline's avatar

Neat notes and recaps.

However, I would like to come back to the statement “use var, let, const” — we should avoid using var in our code and always prefer let or const instead. 🙌

Maybe adding a note about the keywords:

- to create variables var, let, const are available

- but var should not be used due to legacy reasons, let and const should be used

Expand full comment
Petar Ivanov's avatar

True! Thank you for the feedback! 🙏

Expand full comment
Laureline's avatar

I updated the message above as I feared I was not fully expressing my thought.

I meant this could benefits from a little note regarding the use of the keywords to create variables :)

Expand full comment
Roman Letodiani's avatar

That's exactly what happened to me not long ago and I did the same. I dived into articles and books to learn more about the insides of JS/TS.

Expand full comment
Petar Ivanov's avatar

It's part of the journey, I guess. But many people still skip the foundations even after similar failures.

Expand full comment