scrimba
Learn JavaScript
Passenger counter
Log a greeting to the console
Go Pro!Bootcamp

Bootcamp

Study group

Collaborate with peers in your dedicated #study-group channel.

Code reviews

Submit projects for review using the /review command in your #code-reviews channel

To see this lesson you need to be logged in. Joining Scrimba is free and gives you access to 20+ courses.Sign up
Log a greeting to the console
AboutCommentsNotes
Log a greeting to the console
Expand for more info
index.js
run
preview
console
// Create two variables, name and greeting. The name variable should store your name,
// and the greeting should store e.g. "Hi, my name is "

// Create a third variable, myGreeting, that contatenates the two strings
// Log myGreeting to the console


Console
/index.html
-1:16