freeCodeCamp/guide/english/certifications/javascript-algorithms-and-d.../basic-javascript/initializing-variables-with.../index.md

10 lines
416 B
Markdown
Raw Normal View History

2018-10-12 19:37:13 +00:00
---
title: Initializing Variables with the Assignment Operator
---
## Initializing Variables with the Assignment Operator
<!-- The article goes here, in GitHub-flavored Markdown. Feel free to add YouTube videos, images, and CodePen/JSBin embeds -->
To <strong>initialize</strong> a variable is to give it an initial value. You can declare and initialize a variable like so:
var num = 5; // This is equal to 5