Even the slightest variation from the specified form will cause execution to be halted. In order to assist you in fixing syntax errors, error messages attempt to identify the cause and location of each error. In this case, the error message specifies that there is a missing right parenthesis and points to the location where it should be placed. Simulate a syntax error by misspelling one of the words in the program. In order for an algorithm to be well-defined, its steps must be clear and unambiguous to its intended executor.
Programming is the process of designing algorithms whose intended executor is the computer.
While spoken languages such as English and Spanish are rich and flexible, computers require more restricted and unambiguous programming languages such as JavaScript. The syntax of a language is the set of rules which specify how expressions in that language are to be formed. As such, typographical errors which violate these rules are known as syntax errors. Even the simplest syntax errors in a JavaScript program can cause execution to fail. Fortunately, the JavaScript interpreter displays error messages which help to identify errors in the code.