2018-10-12 15:37:13 -04:00
|
|
|
---
|
|
|
|
title: Initializing Variables with the Assignment Operator
|
|
|
|
---
|
2019-07-24 00:59:27 -07:00
|
|
|
# Initializing Variables with the Assignment Operator
|
2018-10-12 15:37:13 -04:00
|
|
|
|
2019-07-24 00:59:27 -07:00
|
|
|
|
|
|
|
---
|
|
|
|
## Hints
|
|
|
|
|
|
|
|
### Hint 1
|
2018-10-12 15:37:13 -04:00
|
|
|
To <strong>initialize</strong> a variable is to give it an initial value. You can declare and initialize a variable like so:
|
|
|
|
|
2019-07-24 00:59:27 -07:00
|
|
|
```javascript
|
|
|
|
var num = 5; // This is equal to 5
|
|
|
|
```
|