Learn JavaScript ARROW FUNCTIONS in 8 minutes! 🎯

Sdílet
Vložit
  • čas přidán 23. 07. 2024
  • // arrow functions = a concise way to write function expressions
    // good for simple functions that you use only once
    00:00:00 introduction
    00:00:35 example 1
    00:03:05 example 2
    00:04:24 example 3
    00:07:25 conclusion

Komentáře • 33

  • @BroCodez
    @BroCodez  Před 9 měsíci +6

    // 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 Před 4 měsíci +8

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

  • @Dillicious17
    @Dillicious17 Před 8 měsíci +4

    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!

  • @CatholicWeeb
    @CatholicWeeb Před 8 měsíci +2

    Absolute respect Bro! You're great!

  • @OscarJ-01
    @OscarJ-01 Před 24 dny

    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.

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

    Thanks for the help man

  • @ratatata3194
    @ratatata3194 Před 2 měsíci

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

  • @YannMetalhead
    @YannMetalhead Před 29 dny

    Very good explanation.

  • @oshadhaedirisinghe1455
    @oshadhaedirisinghe1455 Před měsícem

    Thank you

  • @fishionboy9911
    @fishionboy9911 Před 4 měsíci

    Thanks bro

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

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

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

    respect ++ ❤

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

    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 ❤

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

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

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

    thanks

  • @SkySenseiMC
    @SkySenseiMC Před 2 měsíci +1

    2:56

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

    Do you have any plans on making a rust series?

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

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

    • @magic7691
      @magic7691 Před 8 měsíci +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

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

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

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

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

    • @BroCodez
      @BroCodez  Před 8 měsíci +4

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

  • @AdebayoJoshua-tr7lv
    @AdebayoJoshua-tr7lv Před 8 měsíci

    Please more javascript

  • @user-mk2md9pu5m
    @user-mk2md9pu5m Před 8 měsíci +6

    django course please

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

    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

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

    bro do you have a discord server?

  • @oakleypankratz8547
    @oakleypankratz8547 Před měsícem

    Bro just solved cosc

  • @rolindets47
    @rolindets47 Před 16 dny

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