Please enable JavaScript to use CodeHS

CodeHS Glossary


Initialize a Variable JavaScript

Initializing a variable is giving it an initial value. For example: ``` var num = 0; // num has been initialized to hold the initial value 0 ```