Why do I always get either the first or the last object of an object whenever I try to loop through it

Viewed 9

I don't get how it works. Whenever I console.log it inside a loop block it works the way it does! But once I try to assign those results to any variable (no matter inside or outside of the loop block) it always gets either the last or the first nested object, in this case "sentence" (object of object)enter image description here

0 Answers
Related