Nowadays JavaScript has three different keywords to declare a variable — var, let and, const. Each has its own properties and particularities. Let’s start by making a simple comparison table of the ...
I stumbled over two code snippets that made me think about the scoping in for loops and about a possible misunderstanding. The first one looks as follows: You can see it from time to time to ...