Variable Declaration in JavaScript
Level 250 keystrokes
This declares a variable 'name' and outputs a greeting using string concatenation.
JavaScript code
// let declares a variable that can be reassigned1let name = "Alice";// The + operator concatenates strings// "Hello, " + "Alice" becomes "Hello, Alice"2console.log("Hello, " + name);Output
Hello, Alice
Practice typing this code. Results are not recorded in the rankings.
Symbols in this code
The symbols you type in this JavaScript code and how often they appear.
"× 4;× 2,× 1.× 1(× 1)× 1+× 1=× 1