Semi-colon in JavaScript
- satyanarayan behera
- Aug 22, 2022
- 1 min read
Semi Colon is a very important part of JavaScript programming. It informs the compiler to Differentiate from one statement to another statement. So one statement’s code is not impacting the Other statement's code.
JavaScript it has an automatic “;” insertion feature (Automatic Semi-Colon Insertion (ASI))
. In case of missing “;” in any Line, Browser automatically inserts a “;”. But it is always a good practice to provide the semicolon after the statement.
Comments