Array: ['Date Taken', 'Weight'],
I have this Array and the way I am iterating it is:
for (vb = 0, len = Array.length; vb < len; vb++) {
alert(Array[vb]); // would give me the Array Values...
}
Obj: {DateTaken: 'this.getPicker()', Weight: 'this.getWeight()'}
- How can I seperate the keys and the values when I am printing? I want the key and value to be alerted separately
- Am I constructing the object right way?
- Can a key have multiple values? I mean
DateTaken:'value 1, value 2'or something like this.