Day 54: Higher-Order Function, Underbar

Inseo Park·2021년 9월 28일
0

Path to Data Scientist

목록 보기
52/58
post-thumbnail

1. TIL (Today I Learned)

Reminding What Higher-Order Function Is

Higher Order Function can pass other functions as arguments

A function pased as an argument to a higher-order function is called a callback function. A callback function is often called during an operation, so it is named Callback, which refers to a call that answers a missed call.

Higher Order Functions can return other functions

'Function returning a function' has a different term as it has an unusual shape. Curry functions are named after the logician Haskell Curry, who invented 'functions that return functions.' When the term curry function is used seperately, the term higher-order function is sometimes used only for 'functions that take functions as arguments.' Both 'functions that return a function' and 'functions that take functions as arguments' are higher-order functions.
In other words, a higher-order function is a superordinate concept of a callback function and a curry function.
The caller function that receives the callback function can invoke this callback funtion inside the function. The caller can decide whether to execute the callback function based on a condition. It may not be called at all, or it may run multiple times. In the future, you will often come across a case where it will be called after the completion of a specific task.

Sprint - Underbar

There was a time when array methods were not natively supported by browsers. At this time, the senior developers created a library for manipulating arrays or objects in a better way, that is, a set of tools for manipulating arrays and objects. In this sprint, you can learn in detail from the principle of implementing Underbar, a library that handles arrays and objects, and how JavaScript built-in methods utilize the callback function.

The above sprint will be worked on with my pair this coming Saturday and I will be back for feedbacks and reviews on the sprint. Can't wait for it!

2. 3 Things to be Thankful for

  1. Thankful for having a great day on accomplishing my set goals.
  2. Thankful for God being with me to find out my plans for the future.
  3. Thankful for reminding me to stay humble and to rely on you only.

3. Ideas and Things to Think About

  1. Don't panic because God has plans for you and only thing you need to do is have trust on Him. But you know what, even having the faith on Him is something He will be providing for you. Thank you God! <3
profile
my journey to become a data scientist.

0개의 댓글