📜  如何为变量赋值 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:45.884000             🧑  作者: Mango

代码示例1
//In Javascript, to assign any value to a variable, type:
// var (name of variable) '=' (value)
//For example:
var num = 6;
print (num);
//output will be: 6.
//Don't forget to upvote this answer if it was helpful!