Syntax Error!!!
Cause you can't declare the same variable two times. The variable num is declared twice within the same scope: once using var and then using let. Redeclaring a variable with let or const in the same scope is not allowed, leading to a syntax error.
Post #800
2.14K

- 👍 4