javascript-tutorial / en.javascript.info

Modern JavaScript Tutorial
https://javascript.info
Other
23.13k stars 3.84k forks source link

Fix grammar and typos #3634

Closed nakhodkin closed 2 months ago

smith558 commented 2 months ago

@nakhodkin Thank you for your contribution! 🙂

joaquinelio commented 2 months ago

I don't review grammar because I'm not native speaker

But I think the fix on line 258 is incorrect, the comma is needed.

If we want to check ifitemexists in the array, and don't need the index, thenarr.includesis preferred.

smith558 commented 2 months ago

I don't review grammar because I'm not native speaker

But I think the fix on line 258 is incorrect, the comma is needed.

If we want to check ifitemexists in the array, and don't need the index, thenarr.includesis preferred.

A comma before "and" is almost always optional. I belive it's the case here as well.