But what has this in common with const, let, and var?
Var is the true source of them all because let and const came in with ES2015. Var is a pretty common keyword, even today when we got let and const. It is better not to use it, though. Because a variable defined with var is just like a local variable in C#. It is only usable inside this function, that declared it.
What is so different here? I provided two examples for you. The first one declares the variable in the middle of the method and initializes it right away.
Who else loves to write side-effects-free functions? I think we, as programmers, all do. Today, in this story, I will walk you through the basic principles of functional programming that will make your coding life easier.
Formatting code consistently is a pain, especially when working on a team. The beauty of modern-day web development is that the tooling has gotten so much better! In this article, we will look at setting up Prettier to automatically format your code in Visual Studio Code.