String Concatenation in JavaScript

Level 134 keystrokes

Uses the + operator to join three strings and prints "Hello JS".

JavaScript code

// With strings, + joins (concatenates) them instead of adding numbers
// The middle " " adds the space, giving "Hello JS"
1console.log("Hello" + " " + "JS");

Output

Hello JS
Practice typing this code

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.

  • "× 6
  • +× 2
  • ;× 1
  • .× 1
  • (× 1
  • )× 1

More JavaScript examples at level 1

← JavaScript typing practice