From 777c508f8294f34819e24e7dd9bb819761e76e83 Mon Sep 17 00:00:00 2001 From: alirezaghey <26653424+alirezaghey@users.noreply.github.com> Date: Tue, 18 May 2021 21:42:05 +0000 Subject: [PATCH] fix(curriculum): small english improvement (#42173) * fix(curriculum): small english improvement * fix(curriculum): small english improvement Co-authored-by: Parth Parth <34807532+thecodingaviator@users.noreply.github.com> Co-authored-by: Parth Parth <34807532+thecodingaviator@users.noreply.github.com> --- ...functions-map-filter-or-reduce-to-solve-a-complex-problem.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/functional-programming/use-higher-order-functions-map-filter-or-reduce-to-solve-a-complex-problem.md b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/functional-programming/use-higher-order-functions-map-filter-or-reduce-to-solve-a-complex-problem.md index 45242aadc4..3b80b6677c 100644 --- a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/functional-programming/use-higher-order-functions-map-filter-or-reduce-to-solve-a-complex-problem.md +++ b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/functional-programming/use-higher-order-functions-map-filter-or-reduce-to-solve-a-complex-problem.md @@ -12,7 +12,7 @@ Now that you have worked through a few challenges using higher-order functions l # --instructions-- -We have defined a function named `squareList`. You need to complete the code for the `squareList` function using any combination of `map()`, `filter()`, and `reduce()` so that it returns a new array containing only the square of *only* the positive integers (decimal numbers are not integers) when an array of real numbers is passed to it. An example of an array containing only real numbers is `[-3, 4.8, 5, 3, -3.2]`. +Complete the code for the `squareList` function using any combination of `map()`, `filter()`, and `reduce()`. The function should return a new array containing the squares of *only* the positive integers (decimal numbers are not integers) when an array of real numbers is passed to it. An example of an array of real numbers is `[-3, 4.8, 5, 3, -3.2]`. **Note:** Your function should not use any kind of `for` or `while` loops or the `forEach()` function.