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 changed number to index

Open sajwan05 opened this issue 8 months ago • 5 comments

In chapter Arrays in the section Loops we have for...of loop and there we changed number to index for more accurate language.

Issue: #3940

sajwan05 avatar Mar 22 '26 19:03 sajwan05

It looks like this branch was created from another branch, so it includes those commits as well.

No big deal.

The index fix is 👍 The "capitalized" fix still lacks the final d.

joaquinelio avatar Mar 22 '26 22:03 joaquinelio

Thanks for the suggestion but I think capitalize is right word here instead of capitalized. Because capitalize is base form of verb, which can be used for some action which can happen now or in the future. But if you still thinks "d" needs to be added let me know, I will make the changes.

sajwan05 avatar Mar 24 '26 04:03 sajwan05

oh, I see.

I'm not a native English speaker, so I asked chatgpt :

« I see what you meant: using capitalize as a sort of label, like saying “in uppercase.” The problem is that English doesn’t use capitalize that way. If we want the neutral/label form, the idiomatic option is still capitalized. So even though your intention makes sense, capitalized is the correct and natural choice here. »

joaquinelio avatar Mar 24 '26 15:03 joaquinelio

« I see what you meant: using capitalize as a sort of label, like saying “in uppercase.” The problem is that English doesn’t use capitalize that way. If we want the neutral/label form, the idiomatic option is still capitalized. So even though your intention makes sense, capitalized is the correct and natural choice here. »

Oh I see, thanks for this, I have changed capitalize to capitalized.

sajwan05 avatar Mar 24 '26 17:03 sajwan05

@joaquinelio Hey I did the requested changes. Thanks.

sajwan05 avatar Mar 25 '26 18:03 sajwan05