Tip: Choose Save as PDF in the print dialog to download. Use A4 paper size.
This console.log() worksheet is part of the JavaScript Coding without HTML and CSS journey. Print it as a booklet?
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 | |
|---|---|---|
| 1console.log("Hi!") | AWrong - 'console' must be lowercase | |
| 2console.log(5 + 2) | BPrints the result of 5 + 2 | |
| 3The method used to print output to the console | CWrong - the string is missing its closing quote | |
| 4Prints multiple values separated by commas | Dconsole.log() | |
| 5Console.log("Hi"); | EPrints "Hi!" to the console | |
| 6console.log("Hi); | Fconsole.log(1, 2, 3) |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
console.log() — Prints a value or message to the browser or terminal console for debugging or output.console.log("Hi!")console.log("Bye!")console.log(5 + 2)console.log(score)console.log(name)