Tip: Choose Save as PDF in the print dialog to download. Use A4 paper size.
Shade in the A or B circle for each question.
Draw a line connecting each item on the left to its match on the right.
| Left column | Right column | |
|---|---|---|
| 1score !== 0 | AChecks that score is not equal to 0, giving true when score is any other value | |
| 2age >= 13 | Bpoints <= 100 | |
| 3The boundary value is not included when you use > on its own, so 50 > 50 is false | Cconsole.log(50 > 50); | |
| 4Comparing a variable with a number to check it is at most 100 | D=> is not a comparison operator. Greater than or equal to must be written >= with the > first. | |
| 5if (lives =! 0) { | ETrue when age is 13 or more, so 13 itself counts | |
| 6if (mark => 50) { | FThe symbols are in the wrong order and use only one equals sign. Not equal is written !==, and =! is not a comparison. |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
!== < > <= >= — Comparison operators: !== checks two values are not equal, while <, >, <= and >= compare size. Each gives true or false. 50 >= 50 is true, but 50 > 50 is false.console.log(50 >= 50);console.log(50 > 50);let score = 42;
console.log(score !== 50);let age = 13;
console.log(age < 18);let lives = 3;
console.log(lives <= 3);