Why doesn't "let"variable declaration work on my code playground | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Why doesn't "let"variable declaration work on my code playground

Playground

9th Aug 2020, 12:48 PM
Jefferson John
Jefferson John - avatar
10 Answers
+ 4
I'm gonna have to r/wooosh David Carroll And Jefferson John If you're saying why let declaration does*n't* work on your playground then update your webview. And if you're trying to ask exactly what you asked then you need to take a deep breathe and think about it again.
9th Aug 2020, 4:49 PM
Raj Chhatrala
Raj Chhatrala - avatar
+ 6
I'm surprised to find even const works ๐Ÿค”
9th Aug 2020, 2:09 PM
$hardul B
$hardul B - avatar
+ 5
Because since 2015 it is a part of JavaScript syntax
9th Aug 2020, 12:58 PM
Ore
Ore - avatar
+ 5
Jefferson John Interesting question... Why are you surprised that the let declaration works? What were you expecting?
9th Aug 2020, 1:20 PM
David Carroll
David Carroll - avatar
+ 4
David Carroll i tried sarcasm there๐Ÿ˜…
9th Aug 2020, 3:07 PM
$hardul B
$hardul B - avatar
+ 3
$hardul B Did you learn Javascript before 2015, then switch to other languages that use const, then just recently return back to Javascript? Or is there another reason you are surprised that const is supported?
9th Aug 2020, 2:53 PM
David Carroll
David Carroll - avatar
+ 3
$hardul B DOH... I was like whaaat? ๐Ÿ˜‚๐Ÿคฃ
9th Aug 2020, 4:06 PM
David Carroll
David Carroll - avatar
+ 2
Sorry guys,i meant doesn't work ๐Ÿ˜”
10th Aug 2020, 9:18 AM
Jefferson John
Jefferson John - avatar
+ 2
Why doesn't it work $hardul B
10th Aug 2020, 11:55 AM
Jefferson John
Jefferson John - avatar
0
Jefferson John it's ok no need to apologize! :)
10th Aug 2020, 10:43 AM
$hardul B
$hardul B - avatar