+ 3

Why doesn't Sololearn accept let as a valid variable keyword yet?See question after this https://www.sololearn.com/learn/jQuery/

5th Oct 2020, 9:41 AM
C K
C K - avatar
7 odpowiedzi
+ 4
https://www.sololearn.com/Discuss/1255472/?ref=app. Found the answer. According to the answer here jQuery doesn't have es6.Thank you for all your help.
5th Oct 2020, 10:16 AM
C K
C K - avatar
+ 3
I tried let on the question after this https://www.sololearn.com/learn/jQuery/2782/ and it just doesn't work!!
5th Oct 2020, 9:50 AM
C K
C K - avatar
+ 3
Abhay sorry I meant variable keyword not name.Thanks for spotting that.
5th Oct 2020, 10:01 AM
C K
C K - avatar
+ 2
Because let is a keyword?
5th Oct 2020, 9:56 AM
Abhay
Abhay - avatar
+ 2
So it only works in the compiler but not the questions?
5th Oct 2020, 11:43 AM
C K
C K - avatar
+ 1
C K I don't know if jQuery supports es6 or not ,but I can very well say jQuery runs in the same browser as Javascript and "let" will work if your browser supports es6 syntax,the following code works fine for me https://code.sololearn.com/W5eWW0wVNcM8/?ref=app
5th Oct 2020, 10:24 AM
Abhay
Abhay - avatar