Advertisement
JcGNeon

comments.js

Jan 26th, 2015
227
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // this is a comment
  2. // these get ignored by the computer
  3. console.log(2 + 2);
  4. console.log(3 - 2); // this text is ignored by the interpreter
  5. console.log(5 / 2); // divides 5 by 2
  6. console.log(6 * 2);
  7. /*
  8.  * This is a multiline comment.
  9.  * These are generally used for documenting functions for other programmers
  10.  * to read later. Comments should be used to explain complicated code as well
  11.  * as reasons for your choices in things that aren't obvious
  12.  */
  13.  
  14. // this code is ignored by the interpreter and will not run
  15. //console.log(4 % 2);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement