Subtraction in JavaScript

Level 122 keystrokes

Subtracts 37 from 100 and prints the result, 63.

JavaScript code

// The - operator subtracts the right number from the left one
// 100 - 37 is evaluated to 63, which console.log() prints
1console.log(100 - 37);

Output

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

  • -× 1
  • ;× 1
  • .× 1
  • (× 1
  • )× 1

More JavaScript examples at level 1

← JavaScript typing practice