You've learned how to use the console.log()
command to display text on the screen. Remember, the computer follows your instructions exactly.
Engagement Message
Ready to practice some more?
Type
Multiple Choice
Practice Question
Which of these print statements has correct syntax?
A. console.log("Welcome to JavaScript!");
B. console.log("Welcome to JavaScript!";
C. console.log(Welcome to JavaScript!);
D. console.log["Welcome to JavaScript!"];
Suggested Answers
- A - Correct
- B
- C
- D
Type
Fill in The Blanks
Markdown With Blanks
Complete the code to print exactly: Good morning!
Suggested Answers
- Good
- morning
- console.log
Type
Sort Into Boxes
Practice Question
Sort these code lines into the correct boxes:
