Variable declaration keywords in JavaScript can seem like the Spider-Man meme. TL;DR JavaScript has a unique history which has contributed to its confusing features and structure. When considering when to use var, let, or const, you must take into c...

Markdown supported · ⌘↵ to post
ProfOnestone
c# and beyond
Thanks for sharing this,
var and const were pretty clear to me but now I get the usage of let as well.
Just curious, is there any significant performance benefit in using let over var ? E.g. in a function where you have to declare some variables along the way.