Link Search Menu Expand Document

Storing Values with the Assignment Operator

Summary

  • In JavaScript, a value can be stored in a variable with the assignment operator =.

Final Code

// Setup
var a;
a = 7;
// Only change code below this line