JS Write Tester
JS Write Tester
What happens if you have two elements with id = "test"?
Math Examples
| Operator | Example | Result |
|---|---|---|
| + | 2 + 5 | |
| - | 5 - 2 | |
| + | 2 + 5 | |
| + | 2 + 5 | |
| + | 13 % 5 |
String Examples
| Operator | Example | Result |
|---|---|---|
| + | 'Hi' + 5 | |
| - | '11' - 1 | |
| += | 'Hi' + 'There' |
Boolean Examples
| Operator | Example | Result |
|---|---|---|
| == | x == | |
| == | x == 5 | |
| == | x != 5 | |
| == | x == '12' | |
| === | x === '12' | |
| !== | x !== '12' |