Commit f97e095
Add
* Add for...of with `const` as best practice to "Creating closures in loops"
* Punctuation, wording
* Update index.md
---------
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>for...of loop with const as modern best practice to "Creating closures in loops: A common mistake" (mdn#40654)1 parent 7c98b54 commit f97e095
1 file changed
+10
-18
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
492 | 492 | | |
493 | 493 | | |
494 | 494 | | |
495 | | - | |
| 495 | + | |
496 | 496 | | |
497 | 497 | | |
498 | | - | |
499 | | - | |
500 | | - | |
501 | | - | |
502 | | - | |
503 | | - | |
504 | | - | |
505 | | - | |
506 | | - | |
507 | | - | |
508 | | - | |
509 | | - | |
510 | | - | |
511 | | - | |
512 | | - | |
513 | | - | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
514 | 502 | | |
515 | 503 | | |
516 | | - | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
517 | 509 | | |
518 | 510 | | |
519 | 511 | | |
| |||
0 commit comments