Learn JavaScript ARROW FUNCTIONS in 8 minutes! 🎯
Vložit
- čas přidán 23. 07. 2024
- // arrow functions = a concise way to write function expressions
// good for simple functions that you use only once
00:00:00 introduction
00:00:35 example 1
00:03:05 example 2
00:04:24 example 3
00:07:25 conclusion
// arrow functions = a concise way to write function expressions
// good for simple functions that you use only once
// (parameters) => some code
// ---------- EXAMPLE 1 ----------
const hello = (name, age) => {console.log(`Hello ${name}`)
console.log(`You are ${age} years old`)};
hello("Bro", 25);
// ---------- EXAMPLE 2 ----------
setTimeout(() => {console.log("Hello");
console.log("Goodbye");}, 3000);
// ---------- EXAMPLE 3 ----------
const numbers = [1, 2, 3, 4, 5, 6];
const squares = numbers.map((element) => Math.pow(element, 2));
const cubes = numbers.map((element) => Math.pow(element, 3));
const evenNums = numbers.filter((element) => element % 2 === 0);
const oddNums = numbers.filter((element) => element % 2 !== 0);
const total = numbers.reduce((accumulator, element) => accumulator + element);
console.log(total);
You may not see this but you're helping me through class like you wouldn't believe. Thanks Bro 🙏🏾
Thank you for the tutorials they are super helpful. I have been learning java script for a little over a month and have been using your videos to learn and review! Appreciate it greatly!
Absolute respect Bro! You're great!
1:09 I don't understand why everyone doesn't just explain it this way. They always skip this step while they explain arrow functions. Great video!! Clears up everything. An arrow function is just a function saved in a variable.
Thanks for the help man
Simple and Clear ez to understand literally Bro code things Keep it up G
Very good explanation.
Thank you
Thanks bro
Can you do a bootstrap series as well, you're really good.
respect ++ ❤
Hey bro! Do you mind creating a project with all of these things in some time? I'm pretty sure it will be of great help. i would recommend doing it in around 5 videos. thanks for everything ❤
Just do it and try your best . 1 day you also get millions of view and millions of supports. Good job dear ❤❤❤❤❤
thanks
2:56
Do you have any plans on making a rust series?
sorry not currently. But maybe someday I'll give it a try
@@BroCodez that's no worries man, what you do is hard and i appreciate that you do so much for the community completely free, mad respect to you
Hey Bro I Would Recommend You To Make Some Shorts, They Will Definitely Help You Improve Your Views.
And Sorry I Re-uploaded Your Video And Change the Watermark I Removed That Video Now
@@Th3Coder It's okay, I forgive you :) Also, I hate CZcams Shorts XD
Please more javascript
ok
django course please
probably next year. I'm a little rusty at Python at the moment
@@BroCodez Ok, thank you
@@BroCodez 4 months left
hey bro!!! if i just can give you 1 case of ice cold REDHORSE BEER and drink until we drop dead!haha! thanks for this
bro do you have a discord server?
I do not, I'm sorry
Bro just solved cosc
Sorry but where are you getting element as a parameter? Noob question :(