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 | |
|---|---|---|
| 1Number("5") | AConverts the number 12 into the string "12" | |
| 2String(12) | BConverts the string "5" into the number 5 | |
| 3Converts a value into true or false | CWrong - String() needs parentheses around the value | |
| 4Turns text into a number data type | DBoolean(1) | |
| 5let n = number("5"); | EWrong - 'Number' must start with a capital N | |
| 6let text = String age; | FNumber(input) |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
Number() — Converts a value, like a string, into a number data type.let ageText = String(age);let num = Number(input);let flag = Boolean(1);let count = Number("8");let label = String(score);