mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
fix(curriculum): specify parameter in forEach method callback function (#59540)
This commit is contained in:
+1
-1
@@ -7,7 +7,7 @@ dashedName: step-79
|
||||
|
||||
# --description--
|
||||
|
||||
Inside your condition, add a `forEach` loop to iterate through the `platforms` array.
|
||||
Inside your condition, add a `forEach` loop to iterate through the `platforms` array. Inside the callback function use `platform` for the parameter.
|
||||
|
||||
Inside the loop, use the subtraction assignment operator to subtract 5 from the platform's `x` position.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user