What is var | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

What is var

1st May 2018, 9:16 AM
Devanshu
Devanshu - avatar
5 Answers
+ 27
variable
1st May 2018, 9:54 AM
Salif Mehmed ๐Ÿ‡น๐Ÿ‡ท๐Ÿ‡ง๐Ÿ‡ฌ
Salif Mehmed  ๐Ÿ‡น๐Ÿ‡ท๐Ÿ‡ง๐Ÿ‡ฌ - avatar
+ 6
Var means a variable that you set, now there are two different vars (global and local) for example; var x= 3 function{var y= 5} The var outside the function is global because itโ€™s not inside a function and you guessed it the one inside the function is local and local vars only apply to things inside that function while global variables apply to everything in the code
1st May 2018, 9:34 AM
Sudarshan Rai
Sudarshan Rai - avatar
+ 3
i dont understand the question
1st May 2018, 9:29 AM
Etabeta1๐Ÿ‡ฎ๐Ÿ‡น
Etabeta1๐Ÿ‡ฎ๐Ÿ‡น - avatar
+ 2
var is variable
1st May 2018, 11:35 PM
gita ang
gita ang - avatar
+ 1
var is a variable and you can assign values and strings to vars or boolean to a var. ex. var eggs = 3;
12th Jun 2018, 11:35 AM
IcyClone
IcyClone - avatar