---
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