Mega Code Archive

 
Categories / JavaScript Tutorial / Language Basics
 

End-of-line semicolons are optional

JavaScript allows the developer to decide whether or not to end a line with a semicolon. If the semicolon is not provided, JavaScript considers the end of the line as the end of the statement. var test1 = "red" var test2 = "blue";