A literal
a data value that appears directly in a program .
An identifier
simply a name
Optional Semicolons
In JavaScript , you can usually omit the semicolon between two statements if those statements are written on separate lines . ( You can also omit a semicolon at the end of a program or if the next token in the program is a closing curly brace ) . ) Note that JavaScript does not treat every line break as a semicolon : it usually treats line breaks as semicolons only if it can't parse the code without the semicolons.
JS ans semicolons
JS can't interpret line breaks as semicolons when it can't parse the second line as a continuation of the statement on the first line.Exceptions:1. return, break, continue statements.The line break after them is always perceived as a semicolon.E.g:returntrue; = return; true;