Beginner · 8 min
Your first JavaScript message
Display text and read a program from top to bottom.
Display a message
A program is a set of instructions. console.log() displays a value in the output area. Text inside matching quotation marks is called a string.
console.log("Hello, Ada!");Output
Hello, Ada!
Read in order
Instructions run from top to bottom. Single and double quotes both create strings. The quotes and semicolons belong to the code; they are not displayed.
console.log('Ready');
console.log('Go');Output
Ready Go
Put it into practice
- Predict the output of each example before running it.
- Complete the coding task, then try the practice questions.
Try it yourself
Code runs on this device. When you are signed in, drafts sync to your account.
Display a greeting
Display the exact string "Hello, Ada!" using console.log().
Put "Hello, Ada!" between the parentheses.