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.

Flattening

The header board is a representation of an array of arrays. The board below concatenates all the elements of the header board into a single array and includes a meaningful motivational phrase.
❤️✨🚀🌟💭💪🌅🔄💪😃🚫🙅‍♂️💪🏆
❤️✨Believe in yourself, and you are halfway there.
🚀🌟Success is a journey, not a destination.
💭💪Dream big and dare to fail.
🌅🔄Every setback is a setup for a comeback.
💪😃You are stronger than you think.
🚫🙅‍♂️The only limit is the one you set for yourself.
💪🏆Hard work beats talent when talent does not work hard.

Your own loop

In the center, you will find a timer, press the button ▶️ to start the countdown and press the button 🔄 to reset the counter. The timer stops when it reaches 0.

10

Everything

Enter a city or country in the search bar to get the weather information.

Check dominant direction

Enter any phrase in any language to display the dominant writing direction of the text.

Compound words

Select prefixes and suffixes to update the result word.

Prefixes

Suffixes

Result

unlikely

Orbiting planets

Add new planets and see how the planets orbit around the sun

Number of Planets: 0

Find herbivore animals

Press button to change animals until every animal shown is herbivore
Animal image penguinpoliceofficerpng
Animal image tigerteacherpng

Mixed ❌

Dominant writing direction

Enter any text to see the writing direction of the majority of the text

Dominant writing direction: