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 | |
|---|---|---|
| 1console.log("Hi"); | ASends the text Hi to the console panel, where it appears after you press Run | |
| 2console.log(1); console.log(2); console.log(3); | Bconsole.log("Hello, Sam!"); | |
| 3You write your program in the editor panel, then press Run to see the output in the console | CShows 1, then 2, then 3 in the console, one line each, in the same order as the code | |
| 4After you change your code in the editor, run it again so the console shows the new output | DCode belongs in the editor, not the console. The console only displays the output after you press Run. | |
| 5Change console.log("Hi"); to console.log("Hello"); in the editor, but do not press Run. The console still shows Hi. | EThe program was not run again after the change. The console only updates when you press Run, so run it again to see Hello. | |
| 6Type console.log("Hi"); into the console panel and expect it to be part of your program. | Fconsole.log("Score: 10"); |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
console — The panel beside the editor where your program's output appears after you press Run. Each console.log shows in order, and you run the program again after every change.console.log("Hello, world!");console.log("Program started");let score = 5;
score += 1;
console.log(score);const player = "Mia";
console.log(player);// Output appears in the console
console.log("Hi");