freeCodeCamp/guide/chinese/certifications/javascript-algorithms-and-data-structures/basic-javascript/initializing-variables-with-the-assignment-operator/index.md
2018-10-16 21:32:40 +05:30

306 B

title localeTitle
Initializing Variables with the Assignment Operator 使用赋值运算符初始化变量

使用赋值运算符初始化变量

初始化变量是为了给它一个初始值。你可以像这样声明和初始化一个变量:

var num = 5; // This is equal to 5