In the process of learning JavaScript I learned that Let
and const
were introduced to fix the problems of Var
regarding the global scope and hoisting and not giving an error if re-declared.
Now can I write the code completely without using var
? or should I know about them for now and wait till they becomes widely "acceptable"?
In other words, for the time being should I be worried about compatibility issues if I only used let
and const
?