- 2

Let variable in js not working.

The "let" variable when used displays "unexpected identifier".

2nd Feb 2020, 9:16 PM
Wadika
Wadika - avatar
2 Answers
+ 7
Can you share your code here ? Write it in code playground, and share the link here.
2nd Feb 2020, 9:18 PM
Aymane Boukrouh
Aymane Boukrouh - avatar
+ 2
It is working. let can only be used in its block. https://code.sololearn.com/W3v4OrNYyYAL/?ref=app
3rd Feb 2020, 1:34 AM
🇼🇳Vivek🇼🇳
🇼🇳Vivek🇼🇳 - avatar