#6 - Difference between map(), filter() and reduce() in Javascript

Sdílet
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

Komentáře • 27

  • @maruf1287
    @maruf1287 Před 8 měsíci +1

    Finally I got the clear explanation! Thank you so much Naveen, The saviour! ❤

  • @Arasuari
    @Arasuari Před 10 měsíci +1

    Excellent presentation.. Thank you master ji

  • @shubhamchikane7297
    @shubhamchikane7297 Před 10 měsíci

    awesome information, I like your way of sharing knowledge❤❤👏👏👏👏

  • @DhrumilSoni812
    @DhrumilSoni812 Před 9 měsíci +2

    Thanks for the great explanation.
    **********************************
    let numbers4 = [1,2,3,49,5];
    let minNumber = numbers4.reduce((min, e)=>{
    if(e

  • @shashank9734
    @shashank9734 Před 9 měsíci

    // 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);

  • @SS-zo7or
    @SS-zo7or Před 11 měsíci +1

    Great explanation. Could you please include Array.prototype in next video

  • @GurudattaPraharaj
    @GurudattaPraharaj Před 3 měsíci

    Java streams should have these functions 😛

  • @Gaurav12081
    @Gaurav12081 Před 5 měsíci

    what is difference between map and filter both are almost same?

  • @sourabhsharma7578
    @sourabhsharma7578 Před 11 měsíci +1

    Thank you ,please also make video on window and document and prototype how we can use their function please

  • @vikrantshingne8761
    @vikrantshingne8761 Před 11 měsíci

    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)

  • @MeiyarasuS
    @MeiyarasuS Před 11 měsíci +1

    Thank you❤

  • @sanketchandure5212
    @sanketchandure5212 Před 8 měsíci

    Hi Naveen Which extension you are using for autosuggesion

  • @user-cj5sq5hm9i
    @user-cj5sq5hm9i Před 11 měsíci +1

    Hello Naveen sir, Can you please upload Selenium with C# tutorials??

  • @user-xz3vp8vg8t
    @user-xz3vp8vg8t Před 11 měsíci +1

    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)

  • @memydreamzzzz...1767
    @memydreamzzzz...1767 Před 10 měsíci +1

    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?

    • @Arasuari
      @Arasuari Před 10 měsíci

      yes, you will get the desired output even removing the initializer

  • @yazhselvan4510
    @yazhselvan4510 Před 10 měsíci

    Seems JS is full of, what we call as Lambda Expressions in Java! wherever I see this arrow, Lambda is blocking my mind..

    • @naveenautomationlabs
      @naveenautomationlabs  Před 10 měsíci +1

      yes, please watch the next videos where I have explained about arrow => functions. I am sure you will get it.

  • @RobinsonMartinezEngineer
    @RobinsonMartinezEngineer Před 11 měsíci +1

    Hey Naveen! Thank you again!

  • @ashutoshpratapsingh6872
    @ashutoshpratapsingh6872 Před 9 měsíci

    let top = [55,10,16,25,68,8,92,4,101];
    let minNum = top.reduce((min,num) =>{
    if(min