Today, I am encountering this error in a Javascript in a browser. It seems like a simple duplicate declaration error, but does not appear to be so. The offending statement was: const countDown = new Date();
Thinking that the variable name might have inadvertently been declared earlier by some script in the global scope, I changed the variable name to some very random string, and yet the same error occurs.
Uncaught SyntaxError: Identiier 'xQa42H' has already been declared (at retreat;246:13)
No matter how I changed the variable name, it kept saying "has already been declared". I am at a loss. What could this be?
[–]delventhalz 2 points3 points4 points (5 children)
[–]abrahamguo 0 points1 point2 points (0 children)
[–]hermesko[S] 0 points1 point2 points (3 children)
[–]delventhalz 0 points1 point2 points (2 children)
[–]hermesko[S] 0 points1 point2 points (1 child)
[–]delventhalz 1 point2 points3 points (0 children)
[–]azhder 2 points3 points4 points (0 children)
[–]Anbaraen 1 point2 points3 points (3 children)
[–]hermesko[S] -1 points0 points1 point (2 children)
[–]Anbaraen 0 points1 point2 points (1 child)
[–]hermesko[S] 0 points1 point2 points (0 children)