You cannot have anything aside from cases inside of a switch statement.
Your error is that you start to use a variable inside of a switch without a case.
solved Why did I get: `Uncaught SyntaxError: Unexpected token const`
You cannot have anything aside from cases inside of a switch statement.
Your error is that you start to use a variable inside of a switch without a case.
solved Why did I get: `Uncaught SyntaxError: Unexpected token const`