I have this data
var foo = ['US','MX','NZ'];
var foo1 = [12',13',17];
var Object = {};
Ive tried this thing
var Object = {foo:foo1}
but it is not working when i arrayed the object using alert (JSON.stringify(Object)); i saw:
{"foo":["12","13","17"]}
what I want is that make it like this:
var Object = {
"US":"12",
"MX":"13",
"NZ":17
}
is there any way I could make it looked like this?