JavaScript FUNCTIONS are easy! 📞

  Рет қаралды 22,789

Bro Code

Bro Code

Күн бұрын

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"));

Пікірлер: 34
@BroCodez
@BroCodez 9 ай бұрын
// 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 7 ай бұрын
Hello Bro Code! May I have a favor? can you make a tutorial on how to make pages in react js (jsx). Please? :(
@nathanielfox1143
@nathanielfox1143 4 ай бұрын
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 Ай бұрын
He is such an amazing teacher!
@juanarango4436
@juanarango4436 Ай бұрын
THANK YOU THANK YOU. SO MANY VIDEOS ON THIS TOPIC. AND I FINALLY GOT IT WATCHING THIS ONE.!!!!!
@isaacfavour3696
@isaacfavour3696 Ай бұрын
this was so helpful Brocode ! the best I've seen on this particular topic so far
@nailevsky
@nailevsky 4 ай бұрын
That's one of the, actually it's the best video about how functions work!
@gichuhisamuel4387
@gichuhisamuel4387 6 ай бұрын
Thanks bro much appreciated you are life saviour
@Toxic-xk2zz
@Toxic-xk2zz 4 ай бұрын
Love the way you explained ❤
@user-xe9lq8bi7d
@user-xe9lq8bi7d 3 ай бұрын
perfectly explained !!!!! thank youuuuuuu
@greengraphics5060
@greengraphics5060 5 ай бұрын
You made me understand Javascript. Pls can you do node Js videos
@nandinisingh8952
@nandinisingh8952 Ай бұрын
outstanding and easy to understand...thankyou :)
@mohammedshafiulla9115
@mohammedshafiulla9115 3 ай бұрын
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 3 ай бұрын
Listened to bunch of videos in yt i didn't get it until i saw Bro code i got a better understanding...
@mostlenyora316
@mostlenyora316 4 ай бұрын
Thanks King 🤟
@ronykax
@ronykax 7 ай бұрын
dude ur a legend
@user-dk8ph8ze4s
@user-dk8ph8ze4s 4 ай бұрын
He is bro.... 🤣🤣
@markojelicic5228
@markojelicic5228 5 ай бұрын
best explanation, tnx :)
@Mostafa-jh2ij
@Mostafa-jh2ij Ай бұрын
Thanks Bro!
@Azmeroth1370
@Azmeroth1370 5 ай бұрын
this man sound like another great man, Josh from Let’sgameitout
@selviraja775
@selviraja775 7 ай бұрын
Love from, india you are a very good explanator sir.
@ronykax
@ronykax 7 ай бұрын
why do Indians call people sir
@joachimuche424
@joachimuche424 4 ай бұрын
Thx
@hackingmaster392
@hackingmaster392 7 ай бұрын
love you from bangladesh ❤❤❤❤
@dileepkumardm1609
@dileepkumardm1609 7 ай бұрын
Sir along with programming language what Knowledge is required to get placed.
@samueldayo9261
@samueldayo9261 5 ай бұрын
Thanks for this video, bro code
@nikhiltiwari7371
@nikhiltiwari7371 7 ай бұрын
Bro I got sem end exams and have web dev subject can you please make a tutorial about MEAN stack pleease
@islam_095._
@islam_095._ 7 ай бұрын
Is there an algorithm that predicts aviator play?
@bicyclekikz14
@bicyclekikz14 Ай бұрын
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
@sertying
@sertying 7 ай бұрын
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 7 ай бұрын
he already did some tutorials on react like 2 weeks ago
@STR-DP
@STR-DP 4 ай бұрын
SpongeBob turned 37 in 2023 and Patrick turned 38.
@l-fitness3590
@l-fitness3590 4 ай бұрын
I laughed more than I should have at that part 😂
@mohammed_mishal
@mohammed_mishal 7 ай бұрын
Hi BRO CODE : ) .
Learn JavaScript VARIABLE SCOPE in 5 minutes! 🏠
5:26
Bro Code
Рет қаралды 10 М.
Learn JavaScript ARROW FUNCTIONS in 8 minutes! 🎯
8:02
Bro Code
Рет қаралды 21 М.
I Built a Shelter House For myself and Сat🐱📦🏠
00:35
TooTool
Рет қаралды 33 МЛН
When Jax'S Love For Pomni Is Prevented By Pomni'S Door 😂️
00:26
Whyyyy? 😭 #shorts by Leisi Crazy
00:16
Leisi Crazy
Рет қаралды 19 МЛН
Learn JavaScript CALLBACKS in 7 minutes! 🤙
7:17
Bro Code
Рет қаралды 34 М.
JavaScript forEach() method in 8 minutes! ➿
8:02
Bro Code
Рет қаралды 22 М.
JavaScript Function - What's your Function?
12:27
Fireship
Рет қаралды 179 М.
JavaScript map() method in 7 minutes! 🗺
7:01
Bro Code
Рет қаралды 23 М.
Build this JS STOPWATCH in 18 minutes! ⏱
18:06
Bro Code
Рет қаралды 18 М.
Learn JavaScript CLOSURES in 10 minutes! 🔒
10:58
Bro Code
Рет қаралды 12 М.
Higher Order Functions in JavaScript Explained Simply
9:55
Teddy Smith
Рет қаралды 6 М.
JavaScript ES6 Arrow Functions Tutorial
9:32
Web Dev Simplified
Рет қаралды 815 М.
Javascript Promises vs Async Await EXPLAINED (in 5 minutes)
5:50
Roberts Dev Talk
Рет қаралды 546 М.
I Built a Shelter House For myself and Сat🐱📦🏠
00:35
TooTool
Рет қаралды 33 МЛН