Link Search Menu Expand Document

Increment a Number with JavaScript

Summary

  • You can increment or add one to a variable with the ++ operator.

Final Code

var myVar = 87;

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