Тёмный

JavaScript FUNCTIONS are easy! 📞 

Bro Code
Подписаться 1,9 млн
Просмотров 25 тыс.
50% 1

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

Опубликовано:

 

29 июн 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 35   
@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? :(
@percussion1999
@percussion1999 4 дня назад
@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 2 месяца назад
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.!!!!!
@nailevsky
@nailevsky 5 месяцев назад
That's one of the, actually it's the best video about how functions work!
@gichuhisamuel4387
@gichuhisamuel4387 7 месяцев назад
Thanks bro much appreciated you are life saviour
@isaacfavour3696
@isaacfavour3696 2 месяца назад
this was so helpful Brocode ! the best I've seen on this particular topic so far
@Toxic-xk2zz
@Toxic-xk2zz 4 месяца назад
Love the way you explained ❤
@user-xe9lq8bi7d
@user-xe9lq8bi7d 4 месяца назад
perfectly explained !!!!! thank youuuuuuu
@mostlenyora316
@mostlenyora316 5 месяцев назад
Thanks King 🤟
@ronykax
@ronykax 8 месяцев назад
dude ur a legend
@user-dk8ph8ze4s
@user-dk8ph8ze4s 5 месяцев назад
He is bro.... 🤣🤣
@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...
@greengraphics5060
@greengraphics5060 5 месяцев назад
You made me understand Javascript. Pls can you do node Js videos
@Mostafa-jh2ij
@Mostafa-jh2ij 2 месяца назад
Thanks Bro!
@nandinisingh8952
@nandinisingh8952 Месяц назад
outstanding and easy to understand...thankyou :)
@markojelicic5228
@markojelicic5228 5 месяцев назад
best explanation, tnx :)
@joachimuche424
@joachimuche424 5 месяцев назад
Thx
@selviraja775
@selviraja775 8 месяцев назад
Love from, india you are a very good explanator sir.
@ronykax
@ronykax 8 месяцев назад
why do Indians call people sir
@Azmeroth1370
@Azmeroth1370 5 месяцев назад
this man sound like another great man, Josh from Let’sgameitout
@hackingmaster392
@hackingmaster392 8 месяцев назад
love you from bangladesh ❤❤❤❤
@samueldayo9261
@samueldayo9261 5 месяцев назад
Thanks for this video, bro code
@dileepkumardm1609
@dileepkumardm1609 8 месяцев назад
Sir along with programming language what Knowledge is required to get placed.
@islam_095._
@islam_095._ 8 месяцев назад
Is there an algorithm that predicts aviator play?
@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 😂
@nikhiltiwari7371
@nikhiltiwari7371 8 месяцев назад
Bro I got sem end exams and have web dev subject can you please make a tutorial about MEAN stack pleease
@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
@mohammed_mishal
@mohammed_mishal 8 месяцев назад
Hi BRO CODE : ) .
Далее
Learn JavaScript VARIABLE SCOPE in 5 minutes! 🏠
5:26
What are JavaScript PROMISES? 🤞
12:37
Просмотров 42 тыс.
Ummmm We "HAIR" You!
00:59
Просмотров 13 млн
Learn JavaScript CLOSURES in 10 minutes! 🔒
10:58
Просмотров 13 тыс.
The different types of JavaScript functions explained
14:47
Learn JavaScript ARROW FUNCTIONS in 8 minutes! 🎯
8:02
STOP Using Classes In JavaScript | Prime Reacts
14:02
Просмотров 224 тыс.
Erdős-Woods Numbers - Numberphile
14:12
Просмотров 53 тыс.
I Played Fabiano Caruana
12:03
Просмотров 237 тыс.
All Rust string types explained
22:13
Просмотров 151 тыс.
print() vs. return in Python Functions
4:48
Просмотров 77 тыс.
Learn JavaScript ARRAYS in 8 minutes! 🗃
8:06
Просмотров 23 тыс.
Ummmm We "HAIR" You!
00:59
Просмотров 13 млн