I’m really struggling to create a valid multidimensional JavaScript array with the following basic format:
var countries = [
{
"country": "UK",
"properties": {"value1", "value2", "value3"}
},
"country": "Spain",
"properties": {"value4", "value5", "value6"}
}
]
Can someone tell me what I’m doing wrong please?
Please check the below:
countriesis a array, which has 2 element, and the element is an object, whosepropertieslooks like also an array, the array syntax is like[1,2,3]. And be sure{and[should be pair with}and].