Javascript Tips #1 : Semicolon In Javascript

Note down following thing -

  1. Semicolon is used to specify End of line in JavaScript.
  2. JavaScript executes your code in such a way that even if you forget a semicolon at the end of the line then your output will not be affected.
  3. Use Semicolon to separate two independent pieces of Code.
var varA = 5;
var varB = 7;