+ 3

Why no one uses 'const' and 'let' in JavaScript? Should I use it ?

I mean it's been quite a long since they were introduced most browsers would support them but I rarely see anyone , website using it . Should I use it or traditional var is fine

30th Sep 2017, 5:04 AM
Utkαrsh
Utkαrsh - avatar
3 Respuestas
+ 4
const and let are only work on browsers that supported ES6. There are still many SLers phone browsers are not supported ES6. My ES6 codes were reported not working by many users, I have to use BabelJS to convert it if I write my codes in ES6.
30th Sep 2017, 7:50 AM
Calviղ
Calviղ - avatar
+ 1
I am not so familiar with js, but i think you should. Const and let are much better than just var.
30th Sep 2017, 5:26 AM
Leshark
Leshark - avatar