Link Search Menu Expand Document

Decrement a Number with JavaScript

Summary

  • You can decrement or decrease a variable by one with the -- operator.

Final Code

var myVar = 11;

// Only change code below this line
myVar--;