Callback and arrow function introduction in array

Поділитися
Вставка
  • Опубліковано 8 вер 2024
  • Welcome to a youtube channel dedicated to programming and coding related tutorials. We talk about tech, write code, discuss about cloud and devops. That’s what we do all day, all year. We roll out a lot of series and videos on our channel.
    All the learning resources such as code files, documentations, articles and community discussions are available on our website:
    chaicode.com/
    You can find our discord link, github link etc on the above website.
    Twitter/X link: x.com/hiteshdo...
    Discord link: hitesh.ai/discord
    Learn React with 10 projects: • Let's learn react from...
    Learn Docker: • A practical guide on D...
    Learn Kubernetes: • Complete Kubernetes Co...
    How does a browser works: • How does a browser wor...
    How nodejs works: • How node JS works | En...
    Learn Redux-toolkit: • Learn Redux Toolkit in...
    Learn NextJS: • Nextjs Full stack course
    Learn Typescript: • Why to learn Typescript
    Learn Javascript: • Welcome to new JavaScr...
    Learn React Native: • React Native Mastery: ...
    Learn Zustand: • React state management...
    Learn Golang: • How to get started wit...

КОМЕНТАРІ • 77

  • @HiteshCodeLab
    @HiteshCodeLab  4 роки тому +16

    Hope you are learning a lot, for more visit courses.learncodeonline.in/learn

    • @arijitchatterjee3513
      @arijitchatterjee3513 4 роки тому

      Sir i can't see the next videos they are showing private videos. Plz help sir

    • @pranshuaggarwal
      @pranshuaggarwal 3 роки тому

      Yes sir. I remember, 2 years back i started with your Javascript playlist and that made me feel afraid of this language after i watched your arrow functions video. Since that was terrible and made me feel afraid of this language. But now i thought I should give this language one more try and I can't believe, you made this new playlist so easy to understand. Each and every concept is explained so good, even a layman can understand it, I am just a programmer. Thankyou for making this online Javascript course freely available to us.

  • @lukes5631
    @lukes5631 2 роки тому

    I cannot express, as a new coder, how informative it is to have a complete tutorial like this. The way you progress through the knowledge with your explanations and mid-way recaps it brilliant and also showing (in a progressive manner) how to move toward and understand the new syntax.
    I have actually LEARNED a lot from this one video in a way that I can take that knowledge and apply it pragmatically - not just a theoretical understanding. Thank you.

  • @VijayKumar-eq9ou
    @VijayKumar-eq9ou 4 роки тому +19

    Sir pls continue this series , it's very explanatory and useful for everyone

  • @himanshushrivasrav6696
    @himanshushrivasrav6696 4 роки тому +1

    this video i have been waiting for like 5 months before completing old js course,,, fabulous content this time version 2 is amazing

  • @shahzadisairaawan5079
    @shahzadisairaawan5079 3 роки тому +3

    finally understood the callback function. thank you so much sir

  • @MaheshKumar-qx8dy
    @MaheshKumar-qx8dy 4 роки тому +2

    Best video to understand arrow function and return keyword. Thanks a lot Hitest, you made my day ;)

  • @AbhishekKumar-kd7bp
    @AbhishekKumar-kd7bp 4 роки тому +6

    Oo boi this nasty arrow function and callback function settle everywhere on the code!! Warning the most important topic of js

  • @kamilmohammed9722
    @kamilmohammed9722 3 роки тому +1

    This is not too much. Best for me. Really thanks

  • @Amitsirdelhi
    @Amitsirdelhi 3 роки тому

    I really love this series, way of teaching is excellent Thank you so much even i didn't learn in my hole degree, a big thanks Mr. Hitesh Choudhary

  • @ritish181
    @ritish181 Рік тому +1

    Hey...
    Firstly thank you sooo much for the course @Hitesh Sir.
    Its really confusing 😵 sometimes , don't know if java script is tough or what.

  • @komalmishra9863
    @komalmishra9863 4 роки тому

    I am amazed Sir. Super awesome concepts and explanations.
    I am an Oracle Apps technical consultant and These days I am bit loaded with office work.
    But, everyday at around 9 am I still wait for this js series video. I learn and implement with you simultaneously.
    Seriously sir, this is super fun and super learning. I think you are giving your best.
    Much Thanks.

  • @afamsval
    @afamsval 4 роки тому +1

    I am really enjoying this series. Keep it up Sir! You are the best and I look forward seeing you one day.

  • @devanshsolani2593
    @devanshsolani2593 4 роки тому

    your concepts are unique. other channel do not explain these concepts

  • @abhinavkuruvilajoseph4093
    @abhinavkuruvilajoseph4093 4 роки тому +5

    when hitesh sir dosent upload on sunday.
    i feel my heart crack

  • @alltech-jg9hi
    @alltech-jg9hi 4 роки тому

    had to spend 2 days on this but i understand it now thanks,

  • @raghavgupta6186
    @raghavgupta6186 4 роки тому +3

    Sir it is like lambda or anonymous function in Python , I understood it easily

  • @sagarghare9829
    @sagarghare9829 4 роки тому

    Hitesh sir you are a great teacher.

  • @kamalkumar945
    @kamalkumar945 Рік тому

    awesome lecture

  • @kalyankumar9663
    @kalyankumar9663 3 роки тому

    Great video Hitesh I expected more description about callback function here.

  • @kishannigam1116
    @kishannigam1116 3 роки тому

    thank you so much sir,,,,,,your concept is fabulous!!!!!!!!!!!!!!!!!!!!!!111

  • @tuanphamvan655
    @tuanphamvan655 2 роки тому

    thank you great video I understand more about callback

  • @TheProverbian
    @TheProverbian 4 роки тому

    Super simple and clean! Thank you!

  • @sadique_x_
    @sadique_x_ 2 роки тому

    insightful

  • @FuzzyAnkles
    @FuzzyAnkles 3 роки тому

    dude youre awesome teacher!

  • @Abdirizakmrashid
    @Abdirizakmrashid 3 роки тому

    Thanks

  • @Ravi-oh8xz
    @Ravi-oh8xz Рік тому

    Loved it ❤️❤️

  • @ankushladani496
    @ankushladani496 Рік тому

    Thank you sir...

  • @aayush5474
    @aayush5474 4 роки тому +1

    If you have only one input parameter you can even omit its paranthesis

  • @xesiusprime9360
    @xesiusprime9360 3 роки тому

    another stellar vid. thanks G

  • @akshaysavad7350
    @akshaysavad7350 4 роки тому +3

    Not concerned with video subject..
    But Indian intern need to make some app or website from scratch and in return they only get intership certificate (that if their bosses are good else forgot that also). Is this injustice ?

  • @oneclipperday1
    @oneclipperday1 3 роки тому

    Thanks a lot

  • @saharshnigam6526
    @saharshnigam6526 4 роки тому

    Always on time.awesome

  • @learnwithmehady4040
    @learnwithmehady4040 4 роки тому

    very helpful tnx brother

  • @haythamkenway8343
    @haythamkenway8343 4 роки тому

    I like this trick to check even or odd arrays: const isArrayEven = [2, 4, 6, 8].every(x => !(x & 1));

  • @YouAndImpact
    @YouAndImpact 4 роки тому

    Great video 👍.

  • @lalitkumarmehta1721
    @lalitkumarmehta1721 4 роки тому

    Great explanation:)

  • @mohamediburahimp7661
    @mohamediburahimp7661 2 роки тому

    I luv Hitesh voice,,,bro I'm doing ece I'm eligible to do js?

  • @somagorai8159
    @somagorai8159 2 роки тому +1

    At 6:23, you wrote isEven and not isEven() and you gave the reason that we are passing by reference. Can you please explain that, thanks!

  • @vijaynavale3919
    @vijaynavale3919 4 роки тому

    Keep going 👍

  • @keshavgupta6549
    @keshavgupta6549 4 роки тому

    Thank you bhaiya.

  • @ankushthakur2177
    @ankushthakur2177 4 роки тому

    Awesome video, getting pro in JavaScript 😜😜

  • @ahmeddirie4860
    @ahmeddirie4860 2 роки тому

    thanks.

  • @deekshiththanuku9866
    @deekshiththanuku9866 4 роки тому

    How come you are making us understand javascript so easy?...Thanks to you Hitesh Bhai...😊

  • @IqbalAhmed-qk5ix
    @IqbalAhmed-qk5ix 4 роки тому

    Thank u so much sir

  • @shaqranbhat1168
    @shaqranbhat1168 4 роки тому

    We also dont need to put a parentheses around 'e' as there is only one argument and it's not a non-simple identifier. This makes it look much cleaner:
    """"""var result = [array].every(e => e%2 === 0);
    console.log(result);""""""""

  • @themodestai9603
    @themodestai9603 3 роки тому

    This thing is just like lambda expressions in java

  • @pureblood6174
    @pureblood6174 2 роки тому

    One of the Basic Rule of programming, if it's working, don't touch it.

  • @choyoncc
    @choyoncc 3 роки тому

    What is the name of the Extension that you mention

  • @kuzhalmalan4703
    @kuzhalmalan4703 4 роки тому

    Good Noon Hitesh,
    I am following up your videos from last week and need some clarifications on below mentioned:
    How can we add type of operator in the below console.log using interpolation to get group of results in single query.
    console.log (`
    // Added number is : ${add}
    // Subracted number is : ${sub}
    // Multiply number is : ${mul}
    // Divided number is : ${div}
    // Modulus number is : ${mod}
    // Greater number is : ${greater}
    // Lesser number is : ${lesser}
    // Equal number is : ${equal}
    // `);
    I have tried to use typeof as below and will getting result as string alone.
    console.log (typeof`
    // Added number is : ${add}
    // Subracted number is : ${sub}
    // Multiply number is : ${mul}
    // Divided number is : ${div}
    // Modulus number is : ${mod}
    // Greater number is : ${greater}
    // Lesser number is : ${lesser}
    // Equal number is : ${equal}
    // `);
    and also suggest to put numbers on thumbnails for identification of classes in order.
    Thanks!!!

  • @abdremo
    @abdremo 3 роки тому

    callbacks are like lambdas in kotlin... easy

  • @jagpreetsingh8288
    @jagpreetsingh8288 4 роки тому

    One question- Why we are using callback if we are already getting the same result from IsEven Function? why we are using callback in var result?

    • @vijaynavale3919
      @vijaynavale3919 4 роки тому +2

      Is actually there different scenarios we have to use callbacks in here for example when he applied every() method the isEven function get call only when every() method pass numbers as isEven element parameter then after passing function get triggers.
      You will see this type of scenarios in dom manipulation.where use click or submit the form then that event triggers the callBack function
      Remember callback is simply mean call the function later

  • @vraj3115
    @vraj3115 4 роки тому

    #10minutesJS day 21!

  • @kisan_thapa
    @kisan_thapa 4 роки тому

    Made my day

  • @RAKESH-nf9bi
    @RAKESH-nf9bi 4 роки тому

    var result=[2,3,4,5].every(iseven) is not working in console of my browser

  • @theboxdev
    @theboxdev 4 роки тому

    Why we are not Putting () in isEven like isEven()? However thanks for awesome tutorials

    • @vijaynavale3919
      @vijaynavale3919 4 роки тому +4

      Is because we are passing isEven as call back so we can call it later if you pass like this isEven() then Javascript will immediately call this function we don't want like this.
      Again you will see this in DOM manipulation where use click and then only function runs.
      Hope you understood

  • @umairali2360
    @umairali2360 2 роки тому

    is every method always return true or false???

  • @SahilPatel-jv1fw
    @SahilPatel-jv1fw 3 роки тому

    Array.prototype.map() expects a return value from arrow function array-callback-return i am stuck at this error

  • @gajjalaharsha
    @gajjalaharsha 4 роки тому

    Sir, is it necessary to have semicolon (;) at end of arrow function other wise will it give syntax error?

    • @SharukhKhan-sd7xg
      @SharukhKhan-sd7xg 4 роки тому

      semicolon (;) are not compulsory in JS if you forgot to use ; then it will not throw an error.

  • @programoftech9200
    @programoftech9200 4 роки тому +1

    Present Sir
    Do you remember me?

  • @yoyocr2034
    @yoyocr2034 3 роки тому

    similar to python for loop..

  • @erranbahadurbk
    @erranbahadurbk 3 роки тому

    If anyone is from c# its same as lamda expression!

  • @sayamkoul3204
    @sayamkoul3204 4 роки тому

    First viewer 💯

  • @elpolodiablo5486
    @elpolodiablo5486 4 роки тому +1

    Which theme are you using ?

    • @ravibhagat6513
      @ravibhagat6513 4 роки тому

      I have the same question

    • @ramanshpathak9208
      @ramanshpathak9208 4 роки тому

      It's a costum coded theme
      You'll not find any particular theme like this in VS Code marketplace

    • @ravibhagat6513
      @ravibhagat6513 4 роки тому

      @@ramanshpathak9208 okay... Thanks for the info

  • @AsanTutorials
    @AsanTutorials 3 роки тому

    let isEven = element => element % 2 === 0;
    console.log(isEven(2));
    true

  • @ravibhagat6513
    @ravibhagat6513 4 роки тому

    Your IDE And the Theme please...

  • @StatusWorld-bp2pq
    @StatusWorld-bp2pq 4 роки тому

    Bro please I beg to you help me please . Vs code ki settings karab ho gayi hai kaise usko completely uninstall karke install kare kitno bro please one video

  • @penmaniac
    @penmaniac 4 роки тому

    1st
    viewer

  • @OpinionOfX
    @OpinionOfX Рік тому

    Ravish kumar official

  • @hiteshbhagwat13
    @hiteshbhagwat13 2 роки тому

    so much confusing
    sir