ES5 and ES6 are not considered as pure javascript? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 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 Resposta
+ 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