JavaScript FUNCTIONS are easy! 📞

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

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

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

    // 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 Год назад

      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 7 месяцев назад

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

      idk if u mentioned it or not but on the email one can you type the function however you want as long as "is" is in front? can i type isEmailValid? instead of isValidEmail?

  • @nathanielfox1143
    @nathanielfox1143 11 месяцев назад +58

    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 9 месяцев назад

      He is such an amazing teacher!

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

      fr huh

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

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

  • @mohammedshafiulla9115
    @mohammedshafiulla9115 11 месяцев назад +7

    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 10 месяцев назад

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

  • @isaacfavour3696
    @isaacfavour3696 9 месяцев назад +3

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

  • @juanarango4436
    @juanarango4436 8 месяцев назад +5

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

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

    Thanks bro much appreciated you are life saviour

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

    Thank you for making "this stuff" easiert to understamd and apply!

  • @piotrmazgaj
    @piotrmazgaj 5 месяцев назад +3

    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.

  • @MusfikaAkter-k4t
    @MusfikaAkter-k4t 2 месяца назад

    thanks bro. you are the man. watched so many js videos but you saved me

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

    dude ur a legend

  • @ToumiDouaa-d4j
    @ToumiDouaa-d4j 11 месяцев назад +1

    perfectly explained !!!!! thank youuuuuuu

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

    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 :)

  • @Toxic-xk2zz
    @Toxic-xk2zz 11 месяцев назад

    Love the way you explained ❤

  • @selviraja775
    @selviraja775 Год назад +3

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

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

      why do Indians call people sir

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

      ​ Coz we always give respect to one who teaches us​@@ronykax

  • @greengraphics5060
    @greengraphics5060 Год назад +3

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

  • @SibaSankar-i7s
    @SibaSankar-i7s 5 месяцев назад

    You are fantastic,I love you Man❤

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

    Thanks King 🤟

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

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

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

    gracias,excelente explicacion 👍

  • @shejakevin9325
    @shejakevin9325 3 дня назад

    Very useful

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

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

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

    outstanding and easy to understand...thankyou :)

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

    You need to hire someone to go through your catalogue, and create playlists around certain topics. Wonderful job.

  • @Xics-c5c
    @Xics-c5c 4 месяца назад +1

    Bro I love ❤️ you
    You saved me

  • @STR-DP
    @STR-DP Год назад +4

    SpongeBob turned 37 in 2023 and Patrick turned 38.

    • @l-fitness3590
      @l-fitness3590 Год назад +2

      I laughed more than I should have at that part 😂

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

    best explanation, tnx :)

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

    love you from bangladesh ❤❤❤❤

  • @Mostafa-jh2ij
    @Mostafa-jh2ij 9 месяцев назад

    Thanks Bro!

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

    Thx

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

    Thanks for this video, bro code

  • @sertying
    @sertying Год назад +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 Год назад +4

      he already did some tutorials on react like 2 weeks ago

  • @richdevil5816
    @richdevil5816 4 месяца назад

    Bro code😎🔥💯

  • @Fan_Of_Adam
    @Fan_Of_Adam 6 месяцев назад +1

    4:30 🤣🤣

    • @lenix_x
      @lenix_x 4 месяца назад

      same XD

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

    idk if u mentioned it or not but on the email one can you type the function however you want as long as "is" is in front? can i type isEmailValid? instead of isValidEmail?

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

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

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

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

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

    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

  • @islam_095._
    @islam_095._ Год назад

    Is there an algorithm that predicts aviator play?

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

    Hi BRO CODE : ) .

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

    i'm patrick years old.

  • @KcJunior-hz3ef
    @KcJunior-hz3ef 2 месяца назад

    Mine is saying (Uncaught ReferenceError:)

  • @gowgowgowgow7215
    @gowgowgowgow7215 4 месяца назад

    love ya.