How to Fix "Uncaught SyntaxError: Unexpected identifier" in JavaScript

How to Fix "Uncaught SyntaxError: Unexpected identifier" in JavaScript