Have an Object that contains an array, Then How to Access Arrays in Object,
Here is the simple Solution
Here's my Object
const myobj = {
"name":"John",
"age":30,
"cars":["Ford", "BMW", "Fiat"],
"PetName":"Dogee"
}
Think if you need to access value in cars
array. Just Code Like this
myobj.cars[value_index]
So simple, isn't it? So Keep Following for tips like this.
Top comments (0)