Higher-order functions were quite difficult for me to grasp and took some time but at least it felt like I was learning!
Have a great day and good luck with your challenges, whether it be in the form of code or other aspects of life.
- Using higher-order functions
- Array methods: filter, map, reduce, some
- Introduction to Composability
- Higher-order functions are super tricky for me to grasp
- Got some great problem-solving experience
- Working with objects
- Manipulating and creating complex objects
Task 'reading_EJS'. Elapsed time: 59 min 34 s
Task 'ESJ_exercises'. Elapsed time: 96 min 48 s
Task 'FCC'. Elapsed time: 22 min 7 s
Arrays provide a number of useful higher-order methods. You can use forEach to loop over the elements in an array. The filter method returns a new array containing only the elements that pass the predicate function. Transforming an array by putting each element through a function is done with map. You can use reduce to combine all the elements in an array into a single value. The some method tests whether any element matches a given predicate function. And findIndex finds the position of the first element that matches a predicate." link
Check out FCC for best interactive exercises!
That's it. See you all tomorrow!