Conclusion: open the drop down immediately after invocation to snapshot a truthy result.
Artur Gavrilkevich
1

Hi Artur, You actually won’t be able to do that. In the example I give, since you’re running the code all at once the two console.logs will appear at the same time in the console. You don’t see one before the other, so there would be no time to expand it. Does that make sense?

If you want a snapshot of the array at that moment of the console.log, you can use console.log(nestedArray.slice()) (or console.log([...nestedArray]) for ES6) instead.

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.