Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
I have json data like following way:
[2, 1, ["55", "54"]]
How can i get 55 and 54
Thanks
var arr = [2, 1, ["55", "54"]]; arr[2][0] // 55 arr[2][1] // 54
var a = [2, 1, ["55", "54"]];
This is an array. So, you access them by index.
here a[2]=["55", "54"]
To access 55
a[2][0]
To access 54
a[2][1]