Differences between let and var in JavaScript
Sự khác biệt giữa let và var trong ngôn ngữ JavaScript
Различия между let и var в JavaScript
Notes:
let, const: are used to declare block variables, if the variable are declared inside block {} then they can use only there. the changes of variable inside {} wil not influnce the variables outside ---local variables
var: no need {}, outside the {} is available too, the changes of var inside the {} will change the var outside the {}
Code from 4:00