I've been spending some time with Mozilla docs lately and noticed some lines that were like
instead of the expectedCode:
let whatever = 123;
"let" being a common word it took a while to find info on it, but as best I could find it's for "block level scope".Code:
var whatever = 123;
Am I missing something? Is this something useful or just a way to avoid scope errors?