Master Return Statements in JavaScript (Step-by-Step)

preview_player
Показать описание
Return statements hold a lot more power than you may realize at first. In this video, I build up, one step at a time, to show you how returns can be used to make new functions. If you're new to JavaScript, you should be able to follow along. If you're familiar with JavaScript but don't understand how functions can be used to return other functions, the second half of this video will be for you!
Рекомендации по теме
Комментарии
Автор

The background noise in your video scared me for a sec, thought my computer fan was malfunctioning XD

hgsbrodi
Автор

Good explanation now I understand why returning a function is useful also returning a function works well with closures

solmatrix
Автор

Thanks for the video! Enjoyed your examples. Didn't know that I could save a value in a function that way.

boopfer
Автор

You could do
const name = () => return name;

mrcoder
visit shbcf.ru