var str this is string var number 10 var array str number var obj stri

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
var str = "this is a string";
var number = 10;
var array = [ str, number ];
var obj = { "string": str, "number": number, "hui hui hui": "hui" };
//array.push(obj);
//console.log(array);
//console.log(obj);
//console.log (obj.number);
//console.log(obj["number"]);
//console.log(obj["hui hui hui"]);
var q = function(arg)
{
console.log(arg);
};
var q2 = function(arg1, arg2)
{
arg1(arg2);
};
q2(q, 'qweqweeq');