JavaScript Pure Functions - Tutorial for beginners

Veröffentlicht am: 01 Januar 1970
auf dem Kanal: ColorCode
13,867
864

Pure Functions are an essential ingredient of functional programming, regardless of the language. In this video we cover the two major rules that make any function pure, benefits of pure function, as well as why some functions can't be pure. Let's have some fun yo!

This is episode 16 of 20 things Javascript Developers Should Know But Probably Don't.

00:00:00 Intro
00:01:15 What is a pure function?
00:01:52 Rule #1: Same input means same output
00:02:58 🔴 Live coding: Rule #1
00:08:37 Benefits of Rule #1
00:10:04 Testability
00:12:05 Rule #2: No side-effects
00:12:22 🔴 Live coding: Rule #2
00:15:07 Benefits of Rule #2
00:16:40 Impure functions 😱
00:18:17 Outro

ColorCode Etsy Merchandise store:
https://www.etsy.com/shop/ColorCodeStore

Full playlist here:    • 20 Things JavaScript Developers Shoul...  

JavaScript Promises from the series "20 Things JS Developers Should Know but Probably Don't"
by ColorCode.io, Sina Jazayeri

** Announcement **
Full JavaScript Mastery course is coming! Sign up for Early Access here:
https://www.colorcode.io/js-mastery


Auf dieser Seite können Sie das Online-Video JavaScript Pure Functions - Tutorial for beginners mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer ColorCode 01 Januar 1970 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 13,867 Mal angesehen und es wurde von 864 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!