
However, it is good programming practice to write the semicolon to tell the browser about end of the statement. Since JavaScript is a forgiving language, most browsers are very forgiving and still interpret most statements correctly even if we ignore to write the ending semicolon. A semicolon tells the browser about end of the statement.


placed together in an order that is meaningful to a JavaScript interpreter.Īll JavaScript statements are ended with a semicolon.

These statements consist of tokens, namely keywords, literals, separators, operators, identifiers, function calls, object references, etc. JavaScript statements are the fundamental sentences like building blocks used to make a program.
