Hello , how we iterate array of object if we have 2 layer objects or multiple layers will be there and we want data from object one by one like 1st layer should print in 1st page 2nd in 2nd page
This was helpful, but I still need help with this problem below. Any help would be appreciated. The instructions are first. Create a function called birdCan, within it, loop over the bird object's properties and console log each one, using the for...of loop. Finally call the function as birdCan() to see the output on the console. Remember, you need to console log both the key and the value of each of the bird object's properties. const animal = { canJump: true }; const bird = Object.create(animal); bird.canFly = true; bird.hasFeathers = true; function birdCan(){ let x = Object.entries([bird]); console.log(x);
Wow that was simple to understand , compared to other tutorials in which they go on and on , thanks
That destructuring in a for of loop is very smart!
Just what I was looking for, perfect explanation bro
best explanation ever of looping through an object.....thanks
Your explanation was great thanks for making the video
clear cut information😎
Hello , how we iterate array of object if we have 2 layer objects or multiple layers will be there and we want data from object one by one like 1st layer should print in 1st page 2nd in 2nd page
What about looping through objects inside objects?
This was helpful, but I still need help with this problem below. Any help would be appreciated.
The instructions are first.
Create a function called birdCan, within it, loop over the bird object's properties and console log each one, using the for...of loop. Finally call the function as birdCan() to see the output on the console. Remember, you need to console log both the key and the value of each of the bird object's properties.
const animal = {
canJump: true
};
const bird = Object.create(animal);
bird.canFly = true;
bird.hasFeathers = true;
function birdCan(){
let x = Object.entries([bird]);
console.log(x);
/*for (let x of bird) {
console.log(x);
}*/
}
birdCan();
canFly: true
hasFeathers: true
[ [ 'canFly', true ], [ 'hasFeathers', true ] ]
Nice explanation sir. My name is also Manoj
Is it just me or is the video quality really low
- I like Indian guys(friendly way, Im a boy)
- since when?
- since this video