Comments

Comments can be used to explain code, make code more readable or to prevent execution.

There are two types of comments

  • single line - starts from //
  • multi-line - starts from /* and end by */
// some commented variable
var i=0;

//----------------------------------------------------------
// some section code

/*
fun foo(){
  return 5;
}
*/

fun foo(){
  return 7 /*6*/;
}

/*
This function does ...
*/
fun boo(arg){

}