Эммм... У меня одного выдает ошибку в let? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Эммм... У меня одного выдает ошибку в let?

Запускаю код из примеров а там говорится что ошибка на линии где let.Вообщем редактор sololearn вообще не запускает код где есть let.

9th Jan 2019, 11:37 AM
Эмир Багаев
Эмир Багаев - avatar
4 Answers
+ 5
Эмир Багаев There is no issue to run your code, if your browser can support ES6. For phone's browsers that cannot support ES6, please add the following code at the starting of JS pane's code. This would add Babel.js, a JavaScript compiler. //</script><script src="https://unpkg.com/@babel/standalone/babel.min.js"></script> <script type="text/babel"> Try to run this code https://code.sololearn.com/WhJVO59gYZMH/?ref=app
9th Jan 2019, 2:48 PM
Calviղ
Calviղ - avatar
+ 2
1. I cannot explain better than Morpheus about the syntax of using let Better you read his explanation yourself, commented in the JS of his demo code: https://code.sololearn.com/WdGAFeNRAe9M/?ref=app 2. For his full JS Fact Series, an index is here: https://code.sololearn.com/Wyr76080kKxS/?ref=app 3. С другой стороны, если вам нужно конкретное объяснение вашего кода ошибки. Пожалуйста, разместите ссылку на ваш код здесь для нашего обзора.
9th Jan 2019, 1:50 PM
Gordon
Gordon - avatar
+ 2
Эмир Багаев What's your code link so we can see the issue?
9th Jan 2019, 2:04 PM
David Carroll
David Carroll - avatar
+ 1
let name = 'David'; let msg = 'Welcome ' + name + '!'; console.log(msg);
9th Jan 2019, 2:14 PM
Эмир Багаев
Эмир Багаев - avatar