mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-06-19 21:09:51 +08:00
Merge pull request #4723 from dcsmith926/staging
use of ".map()" should be ".forEach()"
This commit is contained in:
commit
24822250a7
@ -239,7 +239,7 @@
|
||||
"",
|
||||
" var html = \"\";",
|
||||
"",
|
||||
" json.map(function(val) {",
|
||||
" json.forEach(function(val) {",
|
||||
"",
|
||||
" html += \"<div class = 'cat'>\";",
|
||||
"",
|
||||
@ -310,7 +310,7 @@
|
||||
" ",
|
||||
" // Only change code above this line.",
|
||||
"",
|
||||
" json.map(function(val){",
|
||||
" json.forEach(function(val) {",
|
||||
"",
|
||||
" html += \"<div class = 'cat'>\"",
|
||||
"",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user