+ 2
Is this outdated?
I learned var is not used anymore but onlu const and let?
1 Answer
+ 4
You can use any of the above, but they operate differently and differently in various situations. Best bet is to read up on each one and make the decision in whatever situation you find yourself in.
http://wesbos.com/let-vs-const/
https://medium.com/javascript-scene/javascript-es6-var-let-or-const-ba58b8dcde75