In this post you'll learn two new ways to create variables in JavaScript (ES6), let and const. Along the way we'll look at the differences between ...
For further actions, you may consider blocking this person and/or reporting abuse
The explanation is clear and concise, and the great examples make it easy to read and digest. Loved it, especially the summary at the end! 😄
It's 2019, it's not a good time to compare
var
andlet
/const
.What if to compare
let
,const
andReadonly
from TS/Flow?I'll be sure to ask your permission next time I write something.
Great work on this, Tyler, very thorough! Looking forward to more quality content ❤️
great article
Hi Tyler. Great article.
I have a little doubt. How the interpreter of JS can know if a variable was declared with var or let before this happen? 🤔
can function scope can act as a block scope when no function is there ?
"In JavaScript, there are two kinds of scope - global scope, and function scope."
Why don't we say block scope as well 🙄