Javascript Comments

If you want to write something on java script.

for every work here is a particular command

Fist of them is

document.wirte(“Hello how are you”);

it is necessary to give smi colan(;) at the end of any statement.

this way your browser will come to know that statement has been ended.

if you continue without closing first statement there would be error on java script code.

 

Comments 

There are two types of comment

  1. single line comments //
  2. double line comments */   Comment part */