Day 7 of 100DaysOfCode

arttupyykonen

Arttu Pyykönen

Posted on August 25, 2020

Day 7 of 100DaysOfCode

Today was a great learning day! Worked on some more JavaScript with both the Eloquent JavaScript book and FreeCodeCamp. Time went super quickly!

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.

What I did today:

1. Read the rest of Chapter 5 of Eloquent JavaScript book

https://eloquentjavascript.net/05_higher_order.html

What I learned from it:

  • Using higher-order functions
  • Array methods: filter, map, reduce, some
  • Introduction to Composability

2. Did the exercises of Chapter 5 of Eloquent JavaScript

https://eloquentjavascript.net/05_higher_order.html

What I learned from it:

  • Higher-order functions are super tricky for me to grasp
  • Got some great problem-solving experience

3. Worked on the Basic JavaScript lessons at FreeCodeCamp

https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures/basic-javascript/

What I learned from it:

  • Working with objects
  • Manipulating and creating complex objects

Time spent learning:

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

Time spent actually coding: 2h 14 min

Total time: 2h 58min 29s

Tracked by using my TaskTimer script and the WakaTime app

Further reading

Summary of Chapter 5 - Higher-Order functions

"Being able to pass function values to other functions is a deeply useful aspect of JavaScript. It allows us to write functions that model computations with “gaps” in them. The code that calls these functions can fill in the gaps by providing function values.

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

FreeCodeCamp

Check out FCC for best interactive exercises!

Psst

You can check my answers to the exercises of Eloquent JavaScript. You'll find them here.

That's it. See you all tomorrow!

💖 💪 🙅 🚩
arttupyykonen
Arttu Pyykönen

Posted on August 25, 2020

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related

Day 10 of 100DaysOfCode
100daysofcode Day 10 of 100DaysOfCode

August 29, 2020

Day 7 of 100DaysOfCode
100daysofcode Day 7 of 100DaysOfCode

August 25, 2020