Menu

Showing posts with label Unexpected token const. Show all posts
Showing posts with label Unexpected token const. Show all posts

Uncaught SyntaxError: Unexpected token const

const may already be written in your code which is not terminated. Please terminate that first using a semicolon(;) and then declare a const again.

OR

Use the same first const and for the second constant declaration simply write the constant name and assign value without using the const keyword.