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 | |
|---|---|---|
| 1name.toUpperCase() | Ainput.trim() | |
| 2name.trim() | Btext.toLowerCase() | |
| 3Converts every letter of a string to lowercase | CReturns name in all uppercase letters | |
| 4Removes leading and trailing whitespace from a string | DReturns name with whitespace removed from both ends | |
| 5text.touppercase() | EWrong - method names are camelCase: toUpperCase | |
| 6text.Trim() | FWrong - 'trim' must start with a lowercase t |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
toUpperCase() — Returns a new string with all letters converted to uppercase.console.log(name.toUpperCase());console.log(name.toLowerCase());console.log(name.trim());let upper = word.toUpperCase();let trimmed = input.trim();