JavaScript FUNCTIONS are easy! 📞

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 ก.ย. 2024

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

  • @BroCodez
    @BroCodez  11 หลายเดือนก่อน +17

    // function = A section of reusable code.
    // Declare code once, use it whenever you want.
    // Call the function to execute that code.
    function happyBirthday(username, age){
    console.log(`Happy birthday to you!`);
    console.log(`Happy birthday to you!`);
    console.log(`Happy birthday dear, ${username}`);
    console.log(`Happy birthday to you!`);
    console.log(`You are ${age} years old!`);
    }
    function add(x, y){
    return x + y;
    }
    function subtract(x, y){
    return x - y;
    }
    function multiply(x, y){
    return x * y;
    }
    function divide(x, y){
    return x / y;
    }
    function isEven(number){
    return number % 2 === 0 ? true : false;
    }
    function isValidEmail(email){
    return email.includes("@") ? true : false;
    }
    console.log(happyBirthday("BroCode", 25));
    console.log(isValidEmail("Bro@fake.com"));

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

      Hello Bro Code! May I have a favor? can you make a tutorial on how to make pages in react js (jsx). Please? :(

    • @percussion1999
      @percussion1999 2 หลายเดือนก่อน

  • @nathanielfox1143
    @nathanielfox1143 6 หลายเดือนก่อน +40

    After watching multiple JS videos on functions, this is the video that finally gave me that "Aha!" moment. Now I understand. Thank you!

    • @GrayShark09
      @GrayShark09 4 หลายเดือนก่อน

      He is such an amazing teacher!

  • @juanarango4436
    @juanarango4436 3 หลายเดือนก่อน +4

    THANK YOU THANK YOU. SO MANY VIDEOS ON THIS TOPIC. AND I FINALLY GOT IT WATCHING THIS ONE.!!!!!

  • @gichuhisamuel4387
    @gichuhisamuel4387 9 หลายเดือนก่อน +6

    Thanks bro much appreciated you are life saviour

  • @ronykax
    @ronykax 10 หลายเดือนก่อน +6

    dude ur a legend

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

      He is bro.... 🤣🤣

  • @mohammedshafiulla9115
    @mohammedshafiulla9115 6 หลายเดือนก่อน +2

    Really bro, the way of your explanation is not in this particular video but in all this playlist is amazing, I like the way you explain everything with the examples.👌

    • @AvidAfrican
      @AvidAfrican 5 หลายเดือนก่อน

      Listened to bunch of videos in yt i didn't get it until i saw Bro code i got a better understanding...

  • @nailevsky
    @nailevsky 7 หลายเดือนก่อน +2

    That's one of the, actually it's the best video about how functions work!

  • @isaacfavour3696
    @isaacfavour3696 4 หลายเดือนก่อน +1

    this was so helpful Brocode ! the best I've seen on this particular topic so far

  • @user-hb9oq2mx8l
    @user-hb9oq2mx8l 25 วันที่ผ่านมา

    You are fantastic,I love you Man❤

  • @greengraphics5060
    @greengraphics5060 7 หลายเดือนก่อน +3

    You made me understand Javascript. Pls can you do node Js videos

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

    Thank you for making these topics more understandable. I have been using codecademy and some of it dosn't even sound like it's written in English. Clear ideas, good examples, easy learning. thanks again :)

  • @piotrmazgaj
    @piotrmazgaj 29 วันที่ผ่านมา

    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.

  • @selviraja775
    @selviraja775 10 หลายเดือนก่อน +2

    Love from, india you are a very good explanator sir.

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

      why do Indians call people sir

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

    perfectly explained !!!!! thank youuuuuuu

  • @Toxic-xk2zz
    @Toxic-xk2zz 6 หลายเดือนก่อน

    Love the way you explained ❤

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

    this man sound like another great man, Josh from Let’sgameitout

  • @Fan_Of_Adam
    @Fan_Of_Adam หลายเดือนก่อน +1

    4:30 🤣🤣

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

    Thanks King 🤟

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

    The craziest thing is that im watching this tutorial today an it actually is spongebobs birthday today, july 14

  • @STR-DP
    @STR-DP 7 หลายเดือนก่อน +3

    SpongeBob turned 37 in 2023 and Patrick turned 38.

    • @l-fitness3590
      @l-fitness3590 7 หลายเดือนก่อน +2

      I laughed more than I should have at that part 😂

  • @nandinisingh8952
    @nandinisingh8952 4 หลายเดือนก่อน

    outstanding and easy to understand...thankyou :)

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

    Thx

  • @markojelicic5228
    @markojelicic5228 8 หลายเดือนก่อน

    best explanation, tnx :)

  • @Mostafa-jh2ij
    @Mostafa-jh2ij 4 หลายเดือนก่อน

    Thanks Bro!

  • @sertying
    @sertying 10 หลายเดือนก่อน +3

    Hello Bro Code! May I have a favor? can you make a tutorial on how to make pages in react js (jsx). Please? :(

    • @buddhavlr1500
      @buddhavlr1500 10 หลายเดือนก่อน +3

      he already did some tutorials on react like 2 weeks ago

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

    Thanks for this video, bro code

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

    love you from bangladesh ❤❤❤❤

  • @mohammed_mishal
    @mohammed_mishal 10 หลายเดือนก่อน +4

    Hi BRO CODE : ) .

  • @bicyclekikz14
    @bicyclekikz14 4 หลายเดือนก่อน

    when you switch to (age, username) as parameters but the argument stays the same, how does javascript know age suppose to belong to a number?? and when you call it, the order didn't change

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

    Sir along with programming language what Knowledge is required to get placed.

  • @nikhiltiwari7371
    @nikhiltiwari7371 10 หลายเดือนก่อน +1

    Bro I got sem end exams and have web dev subject can you please make a tutorial about MEAN stack pleease

  • @hesamsa
    @hesamsa 8 วันที่ผ่านมา

    i'm patrick years old.

  • @islam_095._
    @islam_095._ 10 หลายเดือนก่อน

    Is there an algorithm that predicts aviator play?

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

      😂😂