JavaScript FUNCTIONS are easy! 📞
HTML-код
- Опубликовано: 31 июл 2024
- 00:00:00 introduction
00:00:14 functions
00:01:57 arguments/parameters
00:04:40 return
00:06:35 example 1
00:07:33 example 2
00:09:30 example 3
00:11:45 conclusion
// 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"));
// 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"));
Hello Bro Code! May I have a favor? can you make a tutorial on how to make pages in react js (jsx). Please? :(
❤
After watching multiple JS videos on functions, this is the video that finally gave me that "Aha!" moment. Now I understand. Thank you!
He is such an amazing teacher!
this was so helpful Brocode ! the best I've seen on this particular topic so far
That's one of the, actually it's the best video about how functions work!
THANK YOU THANK YOU. SO MANY VIDEOS ON THIS TOPIC. AND I FINALLY GOT IT WATCHING THIS ONE.!!!!!
Thanks bro much appreciated you are life saviour
Love the way you explained ❤
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.👌
Listened to bunch of videos in yt i didn't get it until i saw Bro code i got a better understanding...
perfectly explained !!!!! thank youuuuuuu
outstanding and easy to understand...thankyou :)
The craziest thing is that im watching this tutorial today an it actually is spongebobs birthday today, july 14
Thanks King 🤟
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 :)
dude ur a legend
He is bro.... 🤣🤣
You made me understand Javascript. Pls can you do node Js videos
best explanation, tnx :)
Thanks Bro!
Thx
this man sound like another great man, Josh from Let’sgameitout
Love from, india you are a very good explanator sir.
why do Indians call people sir
love you from bangladesh ❤❤❤❤
Thanks for this video, bro code
Sir along with programming language what Knowledge is required to get placed.
Bro I got sem end exams and have web dev subject can you please make a tutorial about MEAN stack pleease
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
Hello Bro Code! May I have a favor? can you make a tutorial on how to make pages in react js (jsx). Please? :(
he already did some tutorials on react like 2 weeks ago
Hi BRO CODE : ) .
SpongeBob turned 37 in 2023 and Patrick turned 38.
I laughed more than I should have at that part 😂
Is there an algorithm that predicts aviator play?
😂😂