Learn JavaScript ARROW FUNCTIONS in 8 minutes! 🎯

preview_player
Показать описание
// 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);

BroCodez
Автор

You may not see this but you're helping me through class like you wouldn't believe. Thanks Bro 🙏🏾

JarvisBaileyVA
Автор

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!

Dillicious
Автор

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.

OscarJ-
Автор

<*_> 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. <_*>

piotrmazgaj
Автор

Absolute respect Bro! You're great!

CatholicWeeb
Автор

Simple and Clear ez to understand literally Bro code things Keep it up G <33

ratatata
Автор

Can you do a bootstrap series as well, you're really good.

moe
Автор

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 ❤

hunin
Автор

Hey Bro I Would Recommend You To Make Some Shorts, They Will Definitely Help You Improve Your Views.

ThCoder
Автор

Just do it and try your best . 1 day you also get millions of view and millions of supports. Good job dear ❤❤❤❤❤

spy_gaming_
Автор

Do you have any plans on making a rust series?

magic
Автор

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

rjocampo
Автор

Sorry but where are you getting element as a parameter? Noob question :(

rolindets