Array Method filter map reduce

แชร์
ฝัง
  • เผยแพร่เมื่อ 7 ก.พ. 2025
  • Instagram : / navinreddyofficial
    Linkedin : / navinreddy20
    Discord : / discord
    More Learning :
    Java - bit.ly/3xleOA2
    Python :- bit.ly/3H0DYHx
    Django :- bit.ly/3awMaD8
    Spring Boot :- bit.ly/3aucCgB
    Spring Framework :- bit.ly/3GRfxwe
    Servlet & JSP :- bit.ly/3mh5CGz
    Hibernate Tutorial :- bit.ly/3NWAKah
    Rest API | Web Service Tutorial :- bit.ly/38RJCiy
    Git :- bit.ly/3NUHB3V
    JavaScript :- bit.ly/3mkcFys
    Kotlin :- bit.ly/3GR2DOG

ความคิดเห็น • 33

  • @MiniMike-xd6bk
    @MiniMike-xd6bk ปีที่แล้ว +9

    bro, you are the best teacher out there

  • @user-qt1wn9l
    @user-qt1wn9l 7 หลายเดือนก่อน +1

    Sir, you are my last hope for any programming topic. Thank you for your very simple explanation

  • @sailokeshchirumarri5727
    @sailokeshchirumarri5727 3 ปีที่แล้ว +5

    First thing fresher do think about any programming language is where they use these programs. I think along with coding, their applications in different business processes could be of more use.

  • @jabeenaziz_077
    @jabeenaziz_077 2 ปีที่แล้ว +7

    let arr = [1,2,3,4,5,6,7,8];
    let result = arr.filter (n => n%2=== 0 )
    .map ( n => n*2)
    .reduce ((x,y) => x+y );
    /*arr.forEach(n =>{
    console.log(n)
    })
    */
    console.log(result);

  • @AbicEpress
    @AbicEpress ปีที่แล้ว +2

    Bro Thank you very much, with is simple explanation i was able to translate this same code in python language.

  • @user-qt1wn9l
    @user-qt1wn9l 7 หลายเดือนก่อน

    You deserve millions of subscribers.

  • @MDShakhawatAlam
    @MDShakhawatAlam 2 ปีที่แล้ว

    wow pracitacal example makes it so easy...take love from bangladesh

  • @MuhammadSalman-d3i
    @MuhammadSalman-d3i 6 หลายเดือนก่อน

    Love you sir you are the great teacher.

  • @Er_IT_prashantjha
    @Er_IT_prashantjha 9 หลายเดือนก่อน

    Made this video in COVID 🫂 thank you 🙏🏻 sir , we are in 2024 it was a great run 💪🏻

  • @sushmitakumari8252
    @sushmitakumari8252 2 ปีที่แล้ว

    Thanks for explaining it helps in understanding clearly 🖋

  • @SameerShaikh-wv1qp
    @SameerShaikh-wv1qp 3 ปีที่แล้ว +3

    Excellent Navin Sir. I earned Rs. 9k by teaching ur Python Tutorials. Thanx. What about starting a series on React??? Thanx Again Sir

  • @aten488
    @aten488 ปีที่แล้ว +1

    This was awesome.Thank you. My question is where did the a,b come from? or is it a default value to reduce?

  • @suvarnasuvi20
    @suvarnasuvi20 3 ปีที่แล้ว +2

    I used all different values and got the exact same sum...crazy😅

  • @bommasanivenkataramana656
    @bommasanivenkataramana656 7 หลายเดือนก่อน

    Thank you Man...

  • @AtishDMello
    @AtishDMello 3 ปีที่แล้ว

    what is the order that the methods are executed,
    For the first example
    nums.filter (n=>n%2==0).map(n=>n*2).forEach (n=> console.log(n));
    Here is it filter then map then forEach
    For the second example
    let result = nums.filter (n=>n%2==0).map(n=>n*2).reduce((a,b)=>a+b);
    So for here it should be filter then map then reduce right?

    • @amazingspiderman7897
      @amazingspiderman7897 2 ปีที่แล้ว +1

      Hi Atish, Always it is going to be executed from left to right. both filter and map methods are going to return an array, so we are chaining the resultant array to the next one by using dot (.) operator
      So yes, in first case it is filter -> map -> forEach and in second example filter -> map -> reduce

  • @RazeRabbit
    @RazeRabbit 3 ปีที่แล้ว +1

    Please make videos on advanced C++

  • @abdulazeeztp1721
    @abdulazeeztp1721 2 ปีที่แล้ว

    nice explanation

  • @johnwilkesbooth8000
    @johnwilkesbooth8000 3 ปีที่แล้ว +1

    I know baisc java programming and i want to become android developer.
    "To kya advance java topic jese spring boot,aws,jdbc etc, jese topics sekhna jaroori hota hai?

  • @MiniMike-xd6bk
    @MiniMike-xd6bk ปีที่แล้ว

    could you do a video about life as a programmer??
    whats a day in your job
    because I know loops recursion functions and all the beginner topics, nut how do you build something serious with loops?

  • @devanshusachdev7367
    @devanshusachdev7367 3 ปีที่แล้ว

    Hey Navin, those old specs look good on you. Don't change them 😅

    • @nagaskandakumar
      @nagaskandakumar 10 หลายเดือนก่อน

      Nice observation 😅

  • @vinusreekumar1879
    @vinusreekumar1879 2 ปีที่แล้ว

    Awesome

  • @SeharFatima-xo4rg
    @SeharFatima-xo4rg ปีที่แล้ว

    Thanks

  • @barbarasanchezvasquez2242
    @barbarasanchezvasquez2242 2 ปีที่แล้ว

    Thanks.

  • @priyankatangudu7135
    @priyankatangudu7135 3 ปีที่แล้ว

    Sir are there any coupon codes for python course in udemy?

  • @coolgirlsharu
    @coolgirlsharu 3 ปีที่แล้ว +1

    I feel god is great

  • @mukuljohar2652
    @mukuljohar2652 2 ปีที่แล้ว

    No bro, your pc is not lagging the voice has not been set properly 😂😂

  • @Miopicsoul
    @Miopicsoul 3 ปีที่แล้ว +1

    262th

  • @mumthazibrahim7105
    @mumthazibrahim7105 3 ปีที่แล้ว +1

    Beautiful please don't shave your beard

  • @pranoydas9654
    @pranoydas9654 ปีที่แล้ว

    It’s totally duplicate of Java stream API

  • @roardayantyt75
    @roardayantyt75 3 ปีที่แล้ว

    Life is short thing"
    "Mother and father is everything♥️♥️
    1 subscribe from Mom & Dad lovers♥️

  • @ankushmatyal1581
    @ankushmatyal1581 2 ปีที่แล้ว

    Ganje Hindi mein padhya kr 😂 kuch samajh nhi atta 😂