javascript semicolon code example
Example 1: do you need a semicolon in javascript
// semicolons are optional because javascript is smart to detect where a line of code ends!!!
console.log(45)
console.log(45);
// there still the same
Example 2: JavaScript's automatic semicolon insertion (ASI)
What are the rules for JavaScript's automatic semicolon insertion (ASI)?
.... read more on Stackoverflow, follow the link