Learn JavaScript ARROW FUNCTIONS in 8 minutes! 🎯

Поділитися
Вставка
  • Опубліковано 29 лис 2024

КОМЕНТАРІ • 40

  • @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 8 місяців тому +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 3 місяці тому +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!

  • @kbantin007
    @kbantin007 2 місяці тому

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

  • @ratatata3194
    @ratatata3194 6 місяців тому

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

  • @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 4 місяці тому +2

      ​@@BroCodez 4 months left

  • @moe583
    @moe583 7 місяців тому +1

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

  • @learn...7065
    @learn...7065 Місяць тому

    Amesome

  • @YannMetalhead
    @YannMetalhead 5 місяців тому

    Very good explanation.

  • @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.

  • @eltonandrade8322
    @eltonandrade8322 Місяць тому

    Very nice, thanks!

  • @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 ❤❤❤❤❤

  • @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 ❤

  • @LaGrasa005
    @LaGrasa005 7 місяців тому

    Thanks for the help man

  • @lolwhat19
    @lolwhat19 16 днів тому

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

  • @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 UA-cam Shorts XD

  • @oshadhaedirisinghe1455
    @oshadhaedirisinghe1455 5 місяців тому

    Thank you

  • @kathikr9360
    @kathikr9360 7 місяців тому

    thanks

  • @DeviantMCC
    @DeviantMCC 7 місяців тому +1

    2:56

  • @AdebayoJoshua-tr7lv
    @AdebayoJoshua-tr7lv Рік тому

    Please more javascript

  • @fishionboy9911
    @fishionboy9911 8 місяців тому

    Thanks bro

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

    respect ++ ❤

  • @rjocampo921
    @rjocampo921 7 місяців тому

    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

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

    bro do you have a discord server?

  • @oakleypankratz8547
    @oakleypankratz8547 5 місяців тому

    Bro just solved cosc

  • @rolindets47
    @rolindets47 4 місяці тому

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

  • @GonzaloFrancoGimeno
    @GonzaloFrancoGimeno 26 днів тому

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

  • @abhinandankaranth8597
    @abhinandankaranth8597 2 місяці тому

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