Error when using Square brackets when creating arrays in JavaScript [closed]

When I try to create an Array in Javascript I get a mistake on a console log that says: Uncaught SyntaxError: Unexpected token ‘[‘ . Any idea what to do about it?I have included an image of the error

I tried to use different square brackets in case ASCII code on my keyboard was wrong
I also tried different JavaScript editor, but I get the same mistake

None of my solutions worked