when should semicolon be used javascript code example
Example: 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