top of page

Semi-colon in JavaScript

  • Writer: satyanarayan behera
    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.


 
 
 

Recent Posts

See All
For Loop : Task 1

Write a "for" loop that will perform exactly the same repetitive code as this: console.log(1) console.log(2) console.log(3)...

 
 
 

Comments


  • alt.text.label.LinkedIn

©2022 by Satya

bottom of page