+ 2

Is this outdated?

I learned var is not used anymore but onlu const and let?

20th Feb 2018, 5:01 PM
Robbe Verhoest
Robbe Verhoest - avatar
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
20th Feb 2018, 5:09 PM
Fata1 Err0r
Fata1 Err0r - avatar