Solved | Uncaught SyntaxError: Block-scoped declarations | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Solved | Uncaught SyntaxError: Block-scoped declarations

How to solve this problem? ------------------------------------------ Solved the problem, added "use strict" to the beginning;

18th Aug 2019, 7:35 PM
LyapaPikka
LyapaPikka - avatar
2 Answers
0
1. General answer : declare in global scope, and initialize in block-scope. - - - 2. Readings Regarding closure, here is David Carroll's pick of 3 readings from beginner to advanced: https://www.sololearn.com/post/45261/?ref=app - - - 3. If you still need specific answer Please show your code here so that we can help you https://www.sololearn.com/post/75089/?ref=app
18th Aug 2019, 7:48 PM
Gordon
Gordon - avatar
- 1
https://code.sololearn.com/WQ6fIxNEvqgJ/?ref=app
18th Aug 2019, 7:52 PM
LyapaPikka
LyapaPikka - avatar