|
|
Q615 How do I know when to include the semi-colon (;) at the end of a line?
irt.org | Knowledge Base | JavaScript | General | Q615 [ previous next ] Q615 How do I know when to include the semi-colon (;) at the end of a line?Semi-colons are optional. However, if you join two statements onto one line then you'll need a spearating semi-colon:
Which is the same as:
It is always best to include semicolons:
|
-- div -->
|