JavaScript variables don't work for me.
When I start any JavaScript code, inside of one HTML (<script></script>) or in a linked document .js
If I use let, show me this message:
ERROR: Parsing error: Unexpected token nombre.
If I use const, this is the message:
ERROR: Parsing error: The keyword 'const' is reserved.
For example:
let person1 = 'Charlie';
const valor1 = 5;
Console log also doesn't work:
Uncaught SyntaxError: missing } after property listmain.js:5:41note: { opened at line 1, column 14
Uncaught ReferenceError: person1 is not defined
debugger eval code:1:1
Don't have any relation about where I declare the variable or how, just avoid me to use let or const. I have Dreamweaver updated this morning. Anybody know about how to fix this??
Thanks!
