Map, Filter & Reduce in JavaScript | JavaScript Tutorial in Hindi #20

preview_player
Показать описание

python, C, C++, Java, JavaScript and Other Cheetsheets [++]:

►Learn in One Video[++]:

►Complete course [playlist]:

Follow Me On Social Media
Comment "#HarryBhai" if you read this 😉😉
Рекомендации по теме
Комментарии
Автор

On your request, I have revamped the channel membership and added more levels.

CodeWithHarry
Автор

Congrats everyone on your 20th video of js keep learning!!👍👍😁😁

siddhantkumar
Автор

Imagine you have a bunch of toys in a basket, and you want to do different things with them:

1. Map: Imagine you want to paint each toy in the basket with a bright color. To do this, you would take one toy at a time, paint it, and put it back in the basket. Map works similarly. It takes a function and applies it to each toy in the basket, creating a new basket with the transformed toys. So, map transforms each toy without changing their order or number.

2. Filter: Now, let's say you only want to keep the toys that are soft. You would go through each toy, feel its texture, and keep only the soft ones in the basket. Filter works in a similar way. It takes a function that checks a condition and applies it to each toy. It creates a new basket containing only the toys that satisfy the condition. So, filter helps you select and keep only specific toys based on a condition.

3. Reduce: Finally, imagine you want to find the total number of toys in the basket. You would count one toy at a time, adding the count to a running total. Reduce does something similar. It takes a function that combines two toys and reduces the collection to a single value. In our case, it would add the count of each toy to a running total until there are no more toys left. So, reduce helps you aggregate or combine values into a single result.

I hope this simplified explanation helps you understand the concepts of map, filter, and reduce!

TechTop
Автор

Thanks brother. You are just amazing. You can just start with any video without prior knowledge and still get your doubt clear. Again thanks man 👍💯

tanishqarjun
Автор

Bhai mere pass laptop nhi h fir v
Python, html, css, C sikha hoon haryy Bhai se phone se code krke online compilers and interpreters ke through.
Or avi replit se krte h coding iss JS course ko.
Thank you Harry bhai.🤟✨

stockbox
Автор

Thank You Harry Bhai I searched map, filter, reduce but I couldn't understand I was just waiting for your next video.Higer Order Function, Really Helpful Course
Thanks Alot.

nayabsuleman
Автор

perfect explanation Harry bhai....map ko main pahaaar smjh raha tha ....ap ny to aisy explain kr k
smjhaya jesy koi makhi urra di you so much brother

mzohaib
Автор

This course is very helpful 👍🏻 keep posting videos thank you

tayyaburrehman
Автор

Knowledgeable👍👍👍 Thanks for making this JavaScript course🙏🙏🙏

shivamtiwari
Автор

These series are extremely helpful. I have a small request for you. After finishing this tutorial please make a full tutorial on the integration of React app inside WordPress. Thank you so much.

aritora
Автор

Thank you harish sir you are such a great teacher love you sir ❤️❤️❤️❤️
I am watching your old video for learning I am BCA student of secend year starting

itsunknown
Автор

@codewithharry; bhai apki puri series nhi dekhi but jis jis topic me doubt hai vo dekha, sachme eakdum clear ho gya. The amount of hardware you put while creating this and explaining is commendable and should be appreciated. Thankyou!

abhaysaxena
Автор

the way you explain, you make everything so easy to understand.

AmitKumar-xxzj
Автор

Thank you so much for this educational video, I learned so much.

codelyslearning
Автор

Hi Harry, I am Jawad Azeemi from Pakistan; just started learning from you instead of my instructor because he is worthy to teach but at the same time, you too worthy because you run with new values added day by day in JS. Thanks.

// let luther = [45, 87, 4, 65]
// luther.map((value)=>{ // value ke jagha kuch be likh sakte ho aap log

// console.log(value)// jo value ya kuch ooper likha ha, wahi idher be likhna ha

// })
let luther = [45, 87, 4, 65]
// ab ham thora change kerte han ooper walay ko
let flower =luther.map((value)=>{
return value + 2
// console.log(value)

})
console.log(flower)
/* now ma chahta hoo ke ye 2 sirf aur sirf add ho
index 2 ka sath jo ke array ma 4 ha*/
let luther1 = [45, 87, 4, 65];

let flower1 = luther1.map((value, index) => {
if (index === 2) {
return value + 2; // Adds 2 only to the element at index 2.
} else {
return value; // For other elements, keep the same value.
}
});

console.log(flower1); // Output: [45, 87, 6, 65]

consolementary
Автор

Very helpful video Maja aa gya Bhai 🔥🔥🔥👍

nandkishor
Автор

I appreciate covering all functions in a single video, I love your videos too, But I think for reduce method you could have stated the arguments list.

prajaktaawale
Автор

Aisa samjhaya ki simple lagne laga . . . . shukriya

ArshadKhanCS
Автор

12:10 bahut bada concept lugta tha map, filter, reduce ; bahut advance concept lugta tha in fact intimidating bhi lugta tha mujhey toh lekin such bataun harry bhai, aap ki video dekhne k baad samjh mei ayaa ki ye kya choti si cheez se durr ruha tha mei . Thank u so much complicated ko simple bananey k liye ! Happy Diwali !🪔

yogeshdharya
Автор

Koi nhi sirji...bahut shi bnayeho aap video

AnujKumar-wwop