Reduce basics - Part 3 of Functional Programming in JavaScript

Share this & earn $10
Fun Fun Function
Published at : 15 Nov 2021
280223 views
6345
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)

Miguel - Sure Thing (Lyrics)

Miguel - Sure Thing (Lyrics)

How to Write a Research Methodology in 4 Steps | Scribbr 🎓

How to Write a Research Methodology in 4 Steps | Scribbr 🎓

You Might Want To Brace Yourself Before Hearing This Huge Secret About Melania That Just Got Leaked

You Might Want To Brace Yourself Before Hearing This Huge Secret About Melania That Just Got Leaked

LFCS Formwork for Off-form Concrete Pour

LFCS Formwork for Off-form Concrete Pour

RAPID WIEN - ΑΝΟΡΘΩΣΗ 3-0 Highlights (05/08/2021)

RAPID WIEN - ΑΝΟΡΘΩΣΗ 3-0 Highlights (05/08/2021)

Mommy, Don't Make Lucy Cry - Lucy Feels Jealous of Wolfoo's Gift - Good Behavior | Wolfoo Channel

Mommy, Don't Make Lucy Cry - Lucy Feels Jealous of Wolfoo's Gift - Good Behavior | Wolfoo Channel

[영어문법] 전치사 + 관계대명사, during which, by which, with which, upon , from, under which 1부, 68.0359, 운배영

[영어문법] 전치사 + 관계대명사, during which, by which, with which, upon , from, under which 1부, 68.0359, 운배영

Pet Shop Boys - Rent (Peters Pop-Show, 05.12.1987)

Pet Shop Boys - Rent (Peters Pop-Show, 05.12.1987)

These 5 Changes Will Improve Your Mood

These 5 Changes Will Improve Your Mood

J-Soul - Usually (Official Music Video)

J-Soul - Usually (Official Music Video)

Tyga - SWISH (Official Music Video)

Tyga - SWISH (Official Music Video)

The Greater Than Less Than Song | Inequalities Song for Kids | Silly School Songs

The Greater Than Less Than Song | Inequalities Song for Kids | Silly School Songs

The Best Bump Offs In Rugby!

The Best Bump Offs In Rugby!

Time Frame

Time Frame

V3 1 new and noteworthy

V3 1 new and noteworthy

Fatherland 1994 HQ

Fatherland 1994 HQ

Pitbull - Options ft. Stephen Marley

Pitbull - Options ft. Stephen Marley

Rihanna & Chris Brown - Put It Up (Audio)

Rihanna & Chris Brown - Put It Up (Audio)

Lucky Dube-Victims

Lucky Dube-Victims

Respiratory Examination - OSCE Guide (New release)

Respiratory Examination - OSCE Guide (New release)

Happening (L'événement) new clip official – Venice Film Festival 2021

Happening (L'événement) new clip official – Venice Film Festival 2021

Organic Chemistry - Basic Introduction

Organic Chemistry - Basic Introduction

الذئب الصغير يبني سريرًا جديدًا للقارب من أجل لوسي | كارتون للأطفال | Wolfoo Arabic

الذئب الصغير يبني سريرًا جديدًا للقارب من أجل لوسي | كارتون للأطفال | Wolfoo Arabic

2Baba Ft. Sound Sultan, Kelly Hansome and Alexx Ekubo (LeJit) - 4 Instance Again

2Baba Ft. Sound Sultan, Kelly Hansome and Alexx Ekubo (LeJit) - 4 Instance Again

Workers Dig Up ‘Mystery Bones’ of Unknown Species

Workers Dig Up ‘Mystery Bones’ of Unknown Species

It's Been a Long, Long Time

It's Been a Long, Long Time

The Physics of Heat: Crash Course Physics #22

The Physics of Heat: Crash Course Physics #22

An Individual LIVE

An Individual LIVE

speed.mp4

speed.mp4

Los Polinesios & RedOne Song - Festival ( Official Video)

Los Polinesios & RedOne Song - Festival ( Official Video)

Mr GISCARD - Pas personnel (Clip officiel)

Mr GISCARD - Pas personnel (Clip officiel)

Practice These 10 Tiny Habits Every Day And Watch Your Entire Life Change

Practice These 10 Tiny Habits Every Day And Watch Your Entire Life Change

ADDITIONAL TIME - Filled with Rage (Official Music Video)

ADDITIONAL TIME - Filled with Rage (Official Music Video)

Η καταστροφή του ανθρώπου (Μέρος 1ο)

Η καταστροφή του ανθρώπου (Μέρος 1ο)

Brantley Gilbert - Country Must Be Country Wide

Brantley Gilbert - Country Must Be Country Wide

Jack Garratt - Worry

Jack Garratt - Worry

Have A Look - Vanessa Amorosi

Have A Look - Vanessa Amorosi

Loving Kindness Meditation

Loving Kindness Meditation

Dawin - Substitute (Audio)

Dawin - Substitute (Audio)

3 Rolex Watches You MUST HAVE | Watchfinder & Co.

3 Rolex Watches You MUST HAVE | Watchfinder & Co.

WARZONE: EVERYTHING You NEED TO KNOW About The OPERATION: FLASHBACK Event...

WARZONE: EVERYTHING You NEED TO KNOW About The OPERATION: FLASHBACK Event...

MANIFEST Official Trailer (HD) Robert Zemeckis Mystery/Drama Series

MANIFEST Official Trailer (HD) Robert Zemeckis Mystery/Drama Series

Reamonn - Sometimes

Reamonn - Sometimes

"There's Probably No Time" by Chris Zabriskie

"There's Probably No Time" by Chris Zabriskie

Our thoughts on the unnecessary policing of women’s clothes (ft. Jasmine Sokko) | Hush Podcast

Our thoughts on the unnecessary policing of women’s clothes (ft. Jasmine Sokko) | Hush Podcast

MORE FORGE PARTS TO COME!

MORE FORGE PARTS TO COME!

DEAD TARGET: Zombie || NEW BIG BOSS - QUEEN OF BAT 「Android Gameplay」

DEAD TARGET: Zombie || NEW BIG BOSS - QUEEN OF BAT 「Android Gameplay」

Men's brains vs Women's brains

Men's brains vs Women's brains

SNIK - SELFMADE - Official Audio Release

SNIK - SELFMADE - Official Audio Release