Optional JavaScript Semicolon

 In JavaScript, you can usually omit the semicolon between two statements as long as those statements are written on separate lines.

Like many programming languages, JavaScript uses the semicolon (;) to separate statements from each other. This is important as it makes the meaning of your code clear; without a separator, the end of one statement might appear to be the beginning of the next (and vice versa).

Featured Post

Macron, Tech Giants Launch 'Paris Call' to Fix Internet Ills

France and U.S. technology giants including Microsoft on Monday urged world governments and companies to sign up to a new initiative to regu...