0
defining a variable x?
var x : 10; // correct or wrong I saw people using colon which confused me online
11 Respuestas
+ 5
var x = 10; //Correct.
The colon is used in Object constructing using literal notation. key: value pairs.
+ 1
var x = 10;  this way :)
+ 1
var x = 10;  this way :)
0
u right
0
x=10
0
I think x=10 but not sure
0
Can I get a your wrong or your right ?
0
var x;
0
If you are changing line after "var x"  then ";"  is not needed but using ";"  is considered good practice in programing. 
- 1
so x=10?
- 1
is this Roman 



