From f427701588ae148e276aa09a9d09e7df372fd6b7 Mon Sep 17 00:00:00 2001 From: Anna Date: Mon, 29 Apr 2024 02:37:14 -0400 Subject: [PATCH] fix(curriculum): step 86 of the platform game now requests an truthy value (#54549) --- .../64cab4d06512c95234256cbb.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cab4d06512c95234256cbb.md b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cab4d06512c95234256cbb.md index 5d4cbf1387d..d0371c72105 100644 --- a/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cab4d06512c95234256cbb.md +++ b/curriculum/challenges/english/15-javascript-algorithms-and-data-structures-22/learn-intermediate-oop-by-building-a-platformer-game/64cab4d06512c95234256cbb.md @@ -7,13 +7,13 @@ dashedName: step-86 # --description-- -Next, add an `if` statement that checks if every rule in the `collisionDetectionRules` array is `true`. Make sure to use the `every` method for this. +Next, add an `if` statement that checks if every rule in the `collisionDetectionRules` array is truthy. Make sure to use the `every` method for this. Inside the body of the `if` statement, assign the number 0 to the player's `y` velocity followed by a `return` statement. # --hints-- -You should have an if statement that uses the `every` method to check if every rule in the `collisionDetectionRules` array is `true`. +You should have an if statement that uses the `every` method to check if every rule in the `collisionDetectionRules` array is truthy. ```js assert.match(code, /if\s*\(\s*collisionDetectionRules\.every\(\s*(?:\(\s*(.+)\s*\)\s*=>\s*\1|([^\s()]+)\s*=>\s*\2)\s*\)\s*\)\s*\{\s*/);