+ 2

ES5 and ES6 are not considered as pure javascript?

Hello friends again😉 Just started the JQuery course and there is a question where they order that a code statement be written in pure javascript, one of the blank spaces where a variable is declared accepts only the value 'var' and not 'let', from there the generated question and several colleagues say that 'let' is not pure javascript ... Is this true or not?🤔

23rd Sep 2019, 7:55 PM
Yoel
Yoel - avatar
1 Réponse
+ 4
The reason it only accepts var is because it was written before ES6. ES6 is pure.
23rd Sep 2019, 8:09 PM
Airree
Airree - avatar