Reduce basics - Part 3 of Functional Programming in JavaScript

Share this & earn $10
Fun Fun Function
Published at : 12 Nov 2021
280066 views
6342
63

πŸ’– Support the show by becoming a Patreon
https://www.patreon.com/funfunfunction

In this video series, we learn how to do functional programming in JavaScript. In this third one, I show you how reduce fits into your toolbox and a basic example of it’s usage.
Code from the video here:
https://jsfiddle.net/mattiasjle/w789neex/

How to install and use io.js (for the arrow functions example)
http://davidwalsh.name/es6-io

You want to follow me on Twitter and Quora:
https://twitter.com/mpjme
http://www.quora.com/Mattias-Petter-Johansson

πŸ’› Follow on Twitch
We record the show live Mondays 7 AM PT
https://twitch.tv/funfunfunction

πŸ’› Fun Fun Forum
Private discussion forum with other viewers in between shows. https://www.funfunforum.com. Available to patron members, become one at https://www.patreon.com/funfunfunction

πŸ’› mpj on Twitter
https://twitter.com/mpjme

πŸ’› CircleCI (Show sponsor)
Robust and sleek Docker-based Continuous Integration as a service. I used CircleCI prior to them becoming a sponsor and I love that their free tier is powerful enough for small personal projects, even if they are private. Use this link when you sign up to let them know you came from here:
https://circleci.funfunfunction.com

πŸ’› Quokka (Show sponsor)
Wonder how MPJ evaluates JavaScript inline his editor. Quokka is the answer - use this link when you buy to let them know you came from here:
http://quokka.funfunfunction.com

πŸ’› FUN FUN FUNCTION
Since 2015, Fun Fun Function (FFF) is one of the longest running weekly YouTube shows on programming πŸ… thanks to its consistency and quality reaching 200,000+ developers.

πŸ€¦β€β™‚οΈ The Failing Together concept is what makes FFF unique. Most coding content out there focus on step-by-step tutorials. We think tutorials are too far removed from what everyday development is like. Instead, FFF has created a completely new learning environment where we grow from failure, by solving problems while intensively interacting with a live audience.

Tutorials try to solve a problem. Failing Together makes you grow as a developer and coworker.

πŸ“Ή Each show is recorded live on Twitch in a 2-hour livestream on Mondays. The host, assisted by the audience, is tasked to complete a programming challenge by an expert guest. Like in the real world, we often fail, and learn from it. This, of course, reflects what the audience identifies with, and is one of the most praised aspects of the show.

⏯ On Fridays, an edited version of the show is adapted for and published on YouTube.

Content Topics revolve around: JavaScript, Functional Programming, Software Architecture, Quality Processes, Developer Career and Health, Software Development, Project Management

JavaScript (Programming Language)Functional Programming (Programming Language Paradigm)Programming Language (Software Genre)

LISA - LALISA Dance Challenge by THE Various

LISA - LALISA Dance Challenge by THE Various

What is a Corporation?

What is a Corporation?

ECOSYSTEM - The Dr. Binocs Show | Best Learning Videos For Kids | Peekaboo Kidz

ECOSYSTEM - The Dr. Binocs Show | Best Learning Videos For Kids | Peekaboo Kidz

40 MIN LEAN LEGS + TONED ARMS Workout - No Repeat, No Equipment, 2 in 1 Workout

40 MIN LEAN LEGS + TONED ARMS Workout - No Repeat, No Equipment, 2 in 1 Workout

(bladee) undergone (ssaliva)

(bladee) undergone (ssaliva)

Has/Have - Does/Do not have | Simple Sentence Present Category 2 | Basic English Grammar

Has/Have - Does/Do not have | Simple Sentence Present Category 2 | Basic English Grammar

Day Off

Day Off

Who is a Product Owner | Product Ownership | Product Owner Roles and Responsibilities | CSPO | Scrum

Who is a Product Owner | Product Ownership | Product Owner Roles and Responsibilities | CSPO | Scrum

Sleep Certainly 😴 With Torrential Rain & Gentle Thunder Sounds On A Palm Roof - Relaxing Night Rain

Sleep Certainly 😴 With Torrential Rain & Gentle Thunder Sounds On A Palm Roof - Relaxing Night Rain

라비(RAVI), Cold Bay(μ½œλ“œλ² μ΄), Xydo(μ‹œλ„) - FASHIONABLE (Prod. GXXD) Official M/V

라비(RAVI), Cold Bay(μ½œλ“œλ² μ΄), Xydo(μ‹œλ„) - FASHIONABLE (Prod. GXXD) Official M/V

BRYAN FOX || LIFE IN GENERAL

BRYAN FOX || LIFE IN GENERAL

Norris Man - Persistence (2000)

Norris Man - Persistence (2000)

Minecraft Fnaf Skull Hunt (Minecraft Roleplay)

Minecraft Fnaf Skull Hunt (Minecraft Roleplay)

Cazzette - Run For Cover

Cazzette - Run For Cover

Telling Time to the Quarter Hour

Telling Time to the Quarter Hour

Antibiotic Classes in 7 minutes!!

Antibiotic Classes in 7 minutes!!

sam tompkins - (w)hole

sam tompkins - (w)hole

Gene Decode - As You Wish Talk Radio

Gene Decode - As You Wish Talk Radio

Circular procurement as a way to address pollution  experiences from ProCirc

Circular procurement as a way to address pollution experiences from ProCirc

STOP WASTING TIME - Part 1 | Motivational Video for Success & Studying (Ft. Coach Hite)

STOP WASTING TIME - Part 1 | Motivational Video for Success & Studying (Ft. Coach Hite)

Joey B. Ellis - Go For It (Rocky V)

Joey B. Ellis - Go For It (Rocky V)

That Beautiful Sound

That Beautiful Sound

Do THIS If You Want to Be Self-Sufficient in Vegetables

Do THIS If You Want to Be Self-Sufficient in Vegetables

The Hunchback of Notre Dame (1996) Scene: "Out There"/Quasimodo's Song.

The Hunchback of Notre Dame (1996) Scene: "Out There"/Quasimodo's Song.

Twine 2.0 - Introduction / Tutorial #1

Twine 2.0 - Introduction / Tutorial #1

How To Fix WhatsApp Error Your Phone Date Is Inaccurate Adjust Your Clock And Try Again

How To Fix WhatsApp Error Your Phone Date Is Inaccurate Adjust Your Clock And Try Again

Outlandish-The start

Outlandish-The start

The Most Irritating Video in the World ever Made

The Most Irritating Video in the World ever Made

Lady Gaga Shows Off Her Accent For House Of Gucci | The Graham Norton Show

Lady Gaga Shows Off Her Accent For House Of Gucci | The Graham Norton Show

2 AT-ST BATTLE Basicly and Hobby Pig makes BBQ

2 AT-ST BATTLE Basicly and Hobby Pig makes BBQ

Milky Chance - Stolen Dance (Official Video)

Milky Chance - Stolen Dance (Official Video)

MATT - SEEN (prod. Fillipian) |Official Video|

MATT - SEEN (prod. Fillipian) |Official Video|

Kidney Stone Treatments

Kidney Stone Treatments

Ali Gatie - It's You [Official Music Video]

Ali Gatie - It's You [Official Music Video]

1. Introduction, Optimization Problems (MIT 6.0002 Intro to Computational Thinking and Data Science)

1. Introduction, Optimization Problems (MIT 6.0002 Intro to Computational Thinking and Data Science)

How to use A.I. and Intelligent Automation to gain competitive advantage

How to use A.I. and Intelligent Automation to gain competitive advantage

Fireman Big & Strong - The Workers

Fireman Big & Strong - The Workers

Antikythera Fragment #2 - Ancient Tool Technology - The Original Dividing Plate?

Antikythera Fragment #2 - Ancient Tool Technology - The Original Dividing Plate?

Mike Perry - The Ocean (ft. Shy Martin) [Lyrics CC]

Mike Perry - The Ocean (ft. Shy Martin) [Lyrics CC]

7 EASY SILK SCARF HAIRSTYLES

7 EASY SILK SCARF HAIRSTYLES

12 HOUR STUDY WITH ME | Background noise, 10-min Break, No music, Study with Merve

12 HOUR STUDY WITH ME | Background noise, 10-min Break, No music, Study with Merve

Dellmon & West K - You'll Find Me (Deepjack & Mr Nu Remix)

Dellmon & West K - You'll Find Me (Deepjack & Mr Nu Remix)

Does This Family All Think The same??

Does This Family All Think The same??

Swagg boy Q with not particularly ( must watchπŸ˜‚)

Swagg boy Q with not particularly ( must watchπŸ˜‚)

Why Am I Such A Bother?

Why Am I Such A Bother?

Optics explained 2: Focus or Focal point

Optics explained 2: Focus or Focal point

Double Damage Primal Mode! | Rescue Bots | Kid’s Cartoon | Transformers Kids

Double Damage Primal Mode! | Rescue Bots | Kid’s Cartoon | Transformers Kids

Air Pollution 101 | National Geographic

Air Pollution 101 | National Geographic

A good sized flat building block (13 are) - Ubud Property

A good sized flat building block (13 are) - Ubud Property