const,let and never var
In ES2015(ES6) and above, the advice given for variable declaration is “If possible, use const. Only use let if you know its value needs to change and never ever use var. (You can always go back and change a const to a let if it later turns out you need to change its value.) Lets […]
Read More →