#6 - Difference between map(), filter() and reduce() in Javascript
Vložit
- čas přidán 26. 07. 2023
- Schedule a meeting in case of any queries/guidance/counselling:
calendly.com/naveenautomation...
~~~Subscribe to this channel, and press bell icon to get some interesting videos on Selenium and Automation:
czcams.com/users/Naveen%20Au...
Follow me on my Facebook Page:
/ naveenqtpexpert
Let's join our Automation community for some amazing knowledge sharing and group discussion on Telegram:
t.me/joinchat/9FrG-KzGlvxjNmQ1
Naveen AutomationLabs Paid Courses:
GIT Hub Course:
naveenautomationlabs.com/gitc...
Java & Selenium:
naveenautomationlabs.com/sele...
Java & API +POSTMAN + RestAssured + HttpClient:
naveenautomationlabs.com/manu... - Věda a technologie
Finally I got the clear explanation! Thank you so much Naveen, The saviour! ❤
Excellent presentation.. Thank you master ji
awesome information, I like your way of sharing knowledge❤❤👏👏👏👏
Thanks for the great explanation.
**********************************
let numbers4 = [1,2,3,49,5];
let minNumber = numbers4.reduce((min, e)=>{
if(e
// find min num in array using reduce
let test1 = [ 32,89,2,-1,23,5679,232];
let min = test1.reduce((min,curr)=> (curr < min ? curr : min),test1[0]);
console.log(min);
Great explanation. Could you please include Array.prototype in next video
Java streams should have these functions 😛
what is difference between map and filter both are almost same?
Thank you ,please also make video on window and document and prototype how we can use their function please
sure :)
let arrayNum= [10,5,25,8,30,15]; //30
let minnum=arrayNum.reduce( (min, num) =>{
if(num < min ) {
return num;
}
else{
return min;
}
},top[0]);
console.log(minnum)
Thank you❤
welcome :)
Hi Naveen Which extension you are using for autosuggesion
No extension. It's inbuilt feature in vsc.
Hello Naveen sir, Can you please upload Selenium with C# tutorials??
will start it soon...
let top = [10,5,25,8,30,15]; //30
let minNum=top.reduce( (min, num) =>{
if(num < min ) {
return num;
}
else{
return min;
}
},top[0]);
console.log(minNum)
Minumimu Number --
let top = [10,5,25,8,30,15]
let minNumb = top.reduce((min, numb) => {
if (numb > min)
return min;
else {
return numb;
}
},top[0])
console.log(minNumb);
Doubt: If I remove the initial values (top[0]) then also I am getting the same results, Could you please help, is this not mandatory or mandatory but in some specific condition?
yes, you will get the desired output even removing the initializer
Seems JS is full of, what we call as Lambda Expressions in Java! wherever I see this arrow, Lambda is blocking my mind..
yes, please watch the next videos where I have explained about arrow => functions. I am sure you will get it.
Hey Naveen! Thank you again!
welcome :)
let top = [55,10,16,25,68,8,92,4,101];
let minNum = top.reduce((min,num) =>{
if(min