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: www.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:3ed2abe5-aac1-f29b-4708-6839a24f179f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BD32:3EBD85:31793A:429599:6A57FCB7 |
| html-safe-nonce | c30fa8d934104576d1e97a3170d021b5aac2a65110ac6a57c2f5b1612001e1ed |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRDMyOjNFQkQ4NTozMTc5M0E6NDI5NTk5OjZBNTdGQ0I3IiwidmlzaXRvcl9pZCI6IjU3NzAyOTcxNjY3Nzk2NDUxMTEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | db9adec0430779ebe44cf1016470e0d4b0b5e85185d6b53077c1ea75098c7338 |
| 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 | 49c8c15fabcbf356d607a90ca115c13b273e42ff8b74155de050fd229a9b0121 |
| 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 | 3fb1f684e7a833eb1b2d01d39875a2b52cb4fe9b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width