JavaScript: var vs let vs const

Nice Doodle by Abhishek Kumar explaining the difference between JavaScript’s var, let, and const:

Good to see hoisting is also explicitly mentioned by name.

๐Ÿ’โ€โ™‚๏ธ I personally always start with const. Only if I need to reassign a variable’s value (for example: a counter in a loop) I use let. I see no good reason to use var.

Drawing Tip: A thicker pen hides mediocrity

Your drawings probably look rubbish because youโ€™re using an old biro that happened to be laying around. Nobodyโ€™s used one of these since cassette tapes stopped needing to be fixed, so throw that in the drawer full of batteries, twine and assorted electrical tape from whence it came.

Instead, go thicker. Go felt tip. Go a marker if thatโ€™s all you got. Because if your drawing skills arenโ€™t very good, going thicker is always a good way to hide this fact.