en.javascript.info icon indicating copy to clipboard operation
en.javascript.info copied to clipboard

[Typo]- In chapter Arrays in the section of loops we have to change `number` to `index`

Open sajwan05 opened this issue 9 months ago • 0 comments

In chapter Arrays 's section Loops there in sentence The for..of doesn’t give access to the **number** of the current element, just its value, but in most cases that’s enough. And it’s shorter.
Instead of number we have to use index. Because using number is not really telling us we're talking about index or number (which can be value)

Image

[X] I would love to work on this issue.

sajwan05 avatar Feb 28 '26 04:02 sajwan05