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