You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can do attempt to change a const variable without any error. For example, it should throw an error SyntaxError: redeclaration of const y instead of silently not reassigning y in this code
const y = 2;
y = 4;
print(y); // prints 2
The text was updated successfully, but these errors were encountered:
You can do attempt to change a
const
variable without any error. For example, it should throw an errorSyntaxError: redeclaration of const y
instead of silently not reassigningy
in this codeThe text was updated successfully, but these errors were encountered: