Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to assign value to variable

//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!
 
PREVIOUS NEXT
Tagged: #assign #variable
ADD COMMENT
Topic
Name
8+5 =