Learn JavaScript ARROW FUNCTIONS in 8 minutes! 🎯

Поделиться
HTML-код
  • Опубликовано: 22 дек 2024

Комментарии • 41

  • @BroCodez
    @BroCodez  Год назад +8

    // arrow functions = a concise way to write function expressions
    // good for simple functions that you use only once
    // (parameters) => some code
    // ---------- EXAMPLE 1 ----------
    const hello = (name, age) => {console.log(`Hello ${name}`)
    console.log(`You are ${age} years old`)};

    hello("Bro", 25);

    // ---------- EXAMPLE 2 ----------
    setTimeout(() => {console.log("Hello");
    console.log("Goodbye");}, 3000);
    // ---------- EXAMPLE 3 ----------
    const numbers = [1, 2, 3, 4, 5, 6];
    const squares = numbers.map((element) => Math.pow(element, 2));
    const cubes = numbers.map((element) => Math.pow(element, 3));
    const evenNums = numbers.filter((element) => element % 2 === 0);
    const oddNums = numbers.filter((element) => element % 2 !== 0);
    const total = numbers.reduce((accumulator, element) => accumulator + element);
    console.log(total);

  • @JarvisBaileyVA
    @JarvisBaileyVA 9 месяцев назад +16

    You may not see this but you're helping me through class like you wouldn't believe. Thanks Bro 🙏🏾

  • @Dillicious17
    @Dillicious17 Год назад +5

    Thank you for the tutorials they are super helpful. I have been learning java script for a little over a month and have been using your videos to learn and review! Appreciate it greatly!

  • @piotrmazgaj
    @piotrmazgaj 4 месяца назад +2

    This is my seal. I have watched the entire video, understood it, and I can explain it in my own words, thus I have gained knowledge. This is my seal.

  • @CatholicWeeb
    @CatholicWeeb Год назад +2

    Absolute respect Bro! You're great!

  • @ratatata3194
    @ratatata3194 7 месяцев назад

    Simple and Clear ez to understand literally Bro code things Keep it up G

  • @OscarJ-01
    @OscarJ-01 5 месяцев назад

    1:09 I don't understand why everyone doesn't just explain it this way. They always skip this step while they explain arrow functions. Great video!! Clears up everything. An arrow function is just a function saved in a variable.

  • @lolwhat19
    @lolwhat19 Месяц назад

    7:20 what if i wanted to pass parameter instead of constant 2's and 3's used in map and filter?

  • @spy_gaming_32
    @spy_gaming_32 Год назад

    Just do it and try your best . 1 day you also get millions of view and millions of supports. Good job dear ❤❤❤❤❤

  • @francisconieto3629
    @francisconieto3629 17 дней назад

    gracias my bro

  • @moe583
    @moe583 8 месяцев назад +1

    Can you do a bootstrap series as well, you're really good.

  • @eltonandrade8322
    @eltonandrade8322 2 месяца назад

    Very nice, thanks!

  • @kbantin007
    @kbantin007 3 месяца назад

    U canr teach a person who wants to learn..you are teaching professionals

  • @YannMetalhead
    @YannMetalhead 6 месяцев назад

    Very good explanation.

  • @learn...7065
    @learn...7065 Месяц назад

    Amesome

  • @Blitz61wasd
    @Blitz61wasd Год назад +9

    django course please

    • @BroCodez
      @BroCodez  Год назад +8

      probably next year. I'm a little rusty at Python at the moment

    • @Blitz61wasd
      @Blitz61wasd Год назад

      @@BroCodez Ok, thank you

    • @786ranabasharat
      @786ranabasharat 5 месяцев назад +2

      ​@@BroCodez 4 months left

  • @DeviantMCC
    @DeviantMCC 8 месяцев назад +1

    2:56

  • @LaGrasa005
    @LaGrasa005 8 месяцев назад

    Thanks for the help man

  • @oshadhaedirisinghe1455
    @oshadhaedirisinghe1455 6 месяцев назад

    Thank you

  • @magic7691
    @magic7691 Год назад +1

    Do you have any plans on making a rust series?

    • @BroCodez
      @BroCodez  Год назад

      sorry not currently. But maybe someday I'll give it a try

    • @magic7691
      @magic7691 Год назад +1

      @@BroCodez that's no worries man, what you do is hard and i appreciate that you do so much for the community completely free, mad respect to you

  • @hunin27
    @hunin27 Год назад

    Hey bro! Do you mind creating a project with all of these things in some time? I'm pretty sure it will be of great help. i would recommend doing it in around 5 videos. thanks for everything ❤

  • @fishionboy9911
    @fishionboy9911 9 месяцев назад

    Thanks bro

  • @shivanshuhere
    @shivanshuhere Год назад

    respect ++ ❤

  • @Th3Coder
    @Th3Coder Год назад +1

    Hey Bro I Would Recommend You To Make Some Shorts, They Will Definitely Help You Improve Your Views.

    • @Th3Coder
      @Th3Coder Год назад +1

      And Sorry I Re-uploaded Your Video And Change the Watermark I Removed That Video Now

    • @BroCodez
      @BroCodez  Год назад +4

      @@Th3Coder It's okay, I forgive you :) Also, I hate RUclips Shorts XD

  • @kathikr9360
    @kathikr9360 8 месяцев назад

    thanks

  • @AdebayoJoshua-tr7lv
    @AdebayoJoshua-tr7lv Год назад

    Please more javascript

  • @rjocampo921
    @rjocampo921 8 месяцев назад

    hey bro!!! if i just can give you 1 case of ice cold REDHORSE BEER and drink until we drop dead!haha! thanks for this

  • @rolindets47
    @rolindets47 5 месяцев назад

    Sorry but where are you getting element as a parameter? Noob question :(

  • @najib303
    @najib303 Год назад

    bro do you have a discord server?

  • @oakleypankratz8547
    @oakleypankratz8547 6 месяцев назад

    Bro just solved cosc

  • @GonzaloFrancoGimeno
    @GonzaloFrancoGimeno Месяц назад

    As a C and Java developer, I feel like this language is cursed af.

  • @abhinandankaranth8597
    @abhinandankaranth8597 3 месяца назад

    Sensie...............