| 1 |
const answer = 42; // line comment |
| 2 |
const moarAnswer = (7*4)/(2/3) |
| 3 |
|
| 4 |
/* |
| 5 |
(•_•) |
| 6 |
<) )╯Multi |
| 7 |
/ \ |
| 8 |
|
| 9 |
\(•_•) |
| 10 |
( (> Line |
| 11 |
/ \ |
| 12 |
|
| 13 |
(•_•) |
| 14 |
<) )> Comment |
| 15 |
/ \ |
| 16 |
*/ |
| 17 |
|
| 18 |
const singleQuotedString = 'i\'m trying to escape'; |
| 19 |
const doubleQuotedString = "this is also \"escaped\""; |
| 20 |
const templateString = `the answer is ${answer}. This is a backtick: \``; |
| 21 |
|
| 22 |
const regex = /you can ignore\/[/]skip me, it's cool/; |
| 23 |
|
| 24 |
if ( a / b ) /foo/; |
| 25 |
|
| 26 |
function calc (data) { |
| 27 |
for (i = 0; i < num; i++) |
| 28 |
something = item[i] / total * 100 |
| 29 |
|
| 30 |
for (i = 0; i < 4; i++) { |
| 31 |
something = Math.round(totals[i] / total * 100) |
| 32 |
} |
| 33 |
} |