Title: [Typo]- In chapter Arrays in the section of loops we have to change `number` to `index` · Issue #3940 · javascript-tutorial/en.javascript.info · GitHub
Open Graph Title: [Typo]- In chapter Arrays in the section of loops we have to change `number` to `index` · Issue #3940 · javascript-tutorial/en.javascript.info
X Title: [Typo]- In chapter Arrays in the section of loops we have to change `number` to `index` · Issue #3940 · javascript-tutorial/en.javascript.info
Description: 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. Bec...
Open Graph Description: 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. Ins...
X Description: 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....
Opengraph URL: https://github.com/javascript-tutorial/en.javascript.info/issues/3940
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Typo]- In chapter Arrays in the section of loops we have to change `number` to `index`","articleBody":"In chapter [Arrays](https://javascript.info/array) 's section [Loops](https://javascript.info/array#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.` \nInstead of **number** we have to use **index**. \nBecause using number is not really telling us we're talking about index or number (which can be value)\n\n\u003cimg width=\"1786\" height=\"665\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/deb442fa-3c33-40fd-b432-e7261488bbab\" /\u003e\n\n\n[X] I would love to work on this issue.","author":{"url":"https://github.com/sajwan05","@type":"Person","name":"sajwan05"},"datePublished":"2026-02-28T04:58:47.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/3940/en.javascript.info/issues/3940"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:d7e033ae-4a6d-30d1-f01a-6b449235f007 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8118:3F1241:21D29E:2E7051:6A584246 |
| html-safe-nonce | 435e770bdd0b765d79c7d7bb47178067e2dc6876535f347e57974f67d4dd830a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MTE4OjNGMTI0MToyMUQyOUU6MkU3MDUxOjZBNTg0MjQ2IiwidmlzaXRvcl9pZCI6IjU5MTA5MDU3MDczMzE4NjMxMTEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | ffeeadb6011faa296a5d919440d71b8137e1d709af0567ec338f5ab2ff61fffb |
| hovercard-subject-tag | issue:4003906393 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/javascript-tutorial/en.javascript.info/3940/issue_layout |
| twitter:image | https://opengraph.githubassets.com/964e393e1dcbe22e6fe5d0acfb87ca1b19b54493d6f12647036647128d055949/javascript-tutorial/en.javascript.info/issues/3940 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/964e393e1dcbe22e6fe5d0acfb87ca1b19b54493d6f12647036647128d055949/javascript-tutorial/en.javascript.info/issues/3940 |
| og:image:alt | 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. Ins... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | sajwan05 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f2a0c7865178af3d91dd9f13b0cdfc3c73a2529c873d2780bb4c01271a57ec6 |
| turbo-cache-control | no-preview |
| go-import | github.com/javascript-tutorial/en.javascript.info git https://github.com/javascript-tutorial/en.javascript.info.git |
| octolytics-dimension-user_id | 49552305 |
| octolytics-dimension-user_login | javascript-tutorial |
| octolytics-dimension-repository_id | 93253246 |
| octolytics-dimension-repository_nwo | javascript-tutorial/en.javascript.info |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 93253246 |
| octolytics-dimension-repository_network_root_nwo | javascript-tutorial/en.javascript.info |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8aae7b8d6caacacf5c66eaeb2702d8dc88d85b4a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width