Console Log String in JavaScript

Level 121 keystrokes

Prints the string "Hello" to the console with console.log().

JavaScript code

// console.log() prints the value it receives, here the string "Hello"
// Text between double ("") or single ('') quotes is a string
1console.log("Hello");

Output

Hello
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.

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

More JavaScript examples at level 1

← JavaScript typing practice