Тёмный

Composition in Javascript | Javascript Interview Questions 

Piyush Garg
Подписаться 143 тыс.
Просмотров 10 тыс.
50% 1

Closure in Javascript: • Closure in Javascript
Currying in Javascript: • Currying in Javascript...
In this video, we'll explore the concept of composition function in Javascript.
Connect With Me: bio.link/piyushgargdev
More Playlists
► Complete ReactJS Tutorial Series - • Complete React Tutoria...
► Complete Firebase & React Tutorial Series - • Firebase with Reactjs ...
Social Links
► Twitter - / piyushgarg_dev
► LinkedIn - / piyushgarg195
Video Titles
What is currying in Javascript?
Javascript Composition
Javascript Composition Functions
Javascript Interview Questions
Hashtags
#javascript #closure #currying #javascriptcurry #webdev #webdeveloper #javascriptinhindi #javascriptinterviewquestions #webdevelopment #javascriptinhindi

Опубликовано:

 

14 дек 2022

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 15   
@VarunMalik-mo6mr
@VarunMalik-mo6mr 2 месяца назад
Bhaiya you’re best the way you narrate these complex concepts in a story way hats off❤️
@FaizanKhan-gfaizank
@FaizanKhan-gfaizank 10 месяцев назад
Key takeaways from the video:- To compose two functions accepting two arguments, following can be done:- function composeTwo(fn1, fn2){ return function(a, b){ return fn2(fn1(a,b)); }; } In ES6, the same can be written as, const c2f=(fn1, fn2) => (a,b) => fn2(fn1(a,b)); and for composing unlimited functons, we can do the following:- function compose(...fns){ return function(...values){ return fns.reduce( (a,b) => b(a), value); }; }
@jaigangemata4166
@jaigangemata4166 2 месяца назад
ohhh! I am just a beginner, who was following your series, but this is the only lecture which has gone total parabola over my head. Shit! JS is complex.......
@VijayDChauhaan
@VijayDChauhaan Год назад
Great Explanation , I mean Effortless, You are Natural bro
@piyushgargdev
@piyushgargdev Год назад
Thankyou bro 😇
@codingwave56
@codingwave56 10 месяцев назад
😏You Did Not Taught Us Well... 8:56 You Got Stuck...Where You Used reduceRight... and After It You Cutted Your Video And Solved By Making It "reduce" function... and you didn't even Mention About It... This Is Where I Also Stuck And THinking Why Your Code Is Working And Mine Not................................. At Least Smjana To Chye Tha Ki Kyu Erroor Aa rhi thi aur kyu reduceRight Function ki jgh reduce function ka use karna pda.... Sorry,,,But You Are Teaching Next Level,,,,But I Have Head Ache rn. so please Give Answer The My q's.... if possible 🙏🏼❤
@vandanayadav1035
@vandanayadav1035 5 месяцев назад
thanks
@jayyy311
@jayyy311 Год назад
@rhishikeshc60
@rhishikeshc60 8 месяцев назад
@amitk9843
@amitk9843 3 месяца назад
hello ... I didnt get line number 21 ... you said b ke andar a ko wrap karna hai .... what is it .. could you please explain
@amitk9843
@amitk9843 3 месяца назад
ok I got it .. i was getting confused by assuming a and b as arguments (as in first half of the video both are referred as argument) ... but you are referring it as functions when you strated unlimited functions and arguments concept
@amankumarsharma3187
@amankumarsharma3187 3 месяца назад
can't we write like this ? type Add = (a:number,b:number) => number const add:Add = (a,b) => a+b type Square = (a:number) => number const square =(a) => a*a const flow = (f,g) => (x,y) => f(g(x,y)) const add_then_square = flow(square,add) console.log(add_then_square(2,4)) in functional programming first we should define the type of each method , each variable .
@muditkhanna8164
@muditkhanna8164 3 месяца назад
nope you're not just writing add and square all the time, it was just an example ,in real these composition technique can be used in hashing algos, string matching etc try writing this your way,fn(double(poweroftwo(add(removeodds(...args)), this is currently written in python, but if i have to rewrite it in javascript i would definitely use composition. normal devs won't encounter them , but those who write tools for devs use them.
@mrharshad2000
@mrharshad2000 5 месяцев назад
mai next js ka latest version ka use karke ek full stack e-commerce webapp ka tutorial banane ka soch raha hu iss video me html, css, javascript, node js , mongodb, redis, redux toolkit, cloudnery sabhi ka use kab, kyo, aur kaise ek sath use karna sikhenge aur iss app ko vercel ke server par free me deploy bhi karega agar mere comment me 200 likes hota hai to Mujhe RU-vid par video banane ka motivation milega
@krutikabarad4241
@krutikabarad4241 6 месяцев назад
thanks
Далее
Connect Bluetooth Devices using Javascript
6:01
Просмотров 17 тыс.
Фэйворит жвачка А? (2024)
01:00
Просмотров 98 тыс.
Currying in Javascript | JS Interview Questions
10:56
Closure in Javascript
14:55
Просмотров 17 тыс.
Фэйворит жвачка А? (2024)
01:00
Просмотров 98 тыс.