question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Beta: order problem? map(), filter(), and reduce() have not been taught yet ,

See original GitHub issue

Challenge write-higher-order-arrow-functions has an issue. User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36. Please describe how to reproduce this issue, and include links to screenshots if possible.

The challenges with map(), filter(), and reduce(), have not been taught yet, in this order.



const realNumberArray = [4, 5.6, -9.8, 3.14, 42, 6, 8.34];
// change code below this line
var squaredIntegers = realNumberArray;
// change code above this line
// test your code
console.log(squaredIntegers);

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
no-stack-dub-sackcommented, May 22, 2017

@ooade - I think what @spieg is saying is that at this juncture, with the current order of the challenges, letting alone that many of the other ES6 challenges do not have test cases, is that the concepts for the array methods that are mentioned here have not yet been covered. So far as I can tell, we no longer have basic introductory challenges for filter(), map(), and reduce(). These are now introduced in the functional programming section, but are used in other challenges leading up to that. I think having basic intros to these concepts would be a good idea, earlier on in the curriculum.

1reaction
QuincyLarsoncommented, Jun 3, 2018

@no-stack-dub-sack this challenge is now live on https://learn.freecodecamp.org - would you be interested in making the fix (moving it, or writing a few quick challenges that introduce these functional JavaScript features prior to the functional programming section?)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Javascript: Map, Filter, and Reduce. | by Harsh Patel | Medium
This article will take a look at what I like to call the “three main” list functions: map, filter, and subtract. Wrapping your...
Read more >
Higher Order Functions: Map, Filter, Reduce and more
In this article we'll focus on closures that are anonymously defined (i.e. defined inline without a name) also called unnamed closures. We can ......
Read more >
Functional Programming in C#: Map, Filter, and Reduce
You can do functional programming in C#. Learn C# Map, Filter, and Reduce in order to help you write cleaner code that's easier...
Read more >
Adding and editing user-defined dashboard filters | Looker
For example, the following Add Filter window shows the Explores that are presently used in the dashboard's tiles: the Flights Explore from the...
Read more >
Customer Application Brief - Filtration for Parts Washers
has instituted guidelines restricting solvent usage in the parts cleaning ... debris, if not effectively reduced, will build up over time, changing the ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found