Link Search Menu Expand Document

Initializing Variables with the Assignment Operator

Summary

  • It is common to initialize a variable to an initial value in the same line as it is declared.

Final Code

var a = 9;