I wrote this in a Chrome snippet:
let myVar = someValue;
And when I try to run it a second time, it says that the variable has already been declared and throws an error in the first line.
Error:
Uncaught SyntaxError: Identifier 'myVar' already declared at: 1: 1
And, of course, this will be the default behavior for the console, but it doesn't seem to make much sense here ..
Is this intended? Is there any way around this?
source share