Closed Sequoya42 closed 2 years ago
Replace in with of
in
of
[ [ 1, 'toto' ], [ 2, 'tata' ] ] > for (z of x) { console.log(z)} [ 1, 'toto' ] [ 2, 'tata' ] undefined > for (z in x) { console.log(z)} 0 1``` Otherwise, trying to access img[0] does not make sense.
Thank you.
Replace
in
withof