bro i used to hate programming and computers in general.Also the tutorials always tested my patience . i litreally used to yawn in online tutorial. but after discovering you , tables turned !! i just joined collage and our first language is c program.i just discovered you and i forget i had to make notes i was just watching and doing ehat ypu were demonstrating . i finally know how to study this subjec and hass fallen in live with .THANKS A LOT 😇😇😇😇
Thank you for your great work. I have a question. Is it better to write: const studentsUpper = students.map(element => element.toUpperCase()) console.log(studentsUpper); instead of write a function? I've heard that the way I just wrote it more modern and even has a better readablitiy. Is it true? Of course unless we are gonna re-use it then I think a function is a better way. Thanks again.
I just love IT not YOU you know in the past vacances I just decouvered you and I always wanted to learn to code but I saw a video about python and I deractly begin coding (Sorry if my english is bad) now I am in python and I really progress and cause of you I learned to be patience and to solve my errors. Last thing to say I LOVE YOUR CONTENT YOU ARE THE BEST
// .map() = accepts a callback and applies that function
// to each element of an array, then return a new array
// ------------ EXAMPLE 1 ------------
const numbers = [1, 2, 3, 4, 5];
const squared = numbers.map(square);
const cubed = numbers.map(cube);
console.log(cubed);
function square(element){
return Math.pow(element, 2);
}
function cube(element){
return Math.pow(element, 3);
}
// ------------ EXAMPLE 2 ------------
const students = ["Spongebob", "Patrick", "Squidward", "Sandy"];
const studentsUpper = students.map(upperCase);
const studentsLower = students.map(lowerCase);
console.log(studentsLower);
function upperCase(element){
return element.toUpperCase();
}
function lowerCase(element){
return element.toLowerCase();
}
// ------------ EXAMPLE 3 ------------
const dates = ["2024-1-10", "2025-2-20", "2026-3-30"];
const formattedDates = dates.map(formatDates);
console.log(formattedDates);
function formatDates(element){
const parts = element.split("-");
return `${parts[1]}/${parts[2]}/${parts[0]}`;
}
Do django course please
do a Lua full course
can you show the basic example on how to display first before applying with operation.
Hey Bro! you have a way of making me undertstand every topics that i've ever struggled with.
God bless you abundantly!!
bro i used to hate programming and computers in general.Also the tutorials always tested my patience . i litreally used to yawn in online tutorial. but after discovering you , tables turned !! i just joined collage and our first language is c program.i just discovered you and i forget i had to make notes i was just watching and doing ehat ypu were demonstrating . i finally know how to study this subjec and hass fallen in live with .THANKS A LOT 😇😇😇😇
C has similarities as JavaScript
This guy is the goat at teaching how to code
Thank you so much! You're skilled with the gift of teaching.
bro code truly is a bro, you have just saved my ass, I couldnt understand where to get the parameters.
Now you are my favorite coding teacher 😅
Very well explained. Thanks bro!
Super easy to follow along with thanks!
Very easy to understand, thanks!
That last example was so helpful
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.
thank you man
thanks to you i understood the map() method ! thank you again
TypeScript full course when?
THANK YOUUUUUUUUUUUUUUUUU
@BroCodez can you do a Lua full course
Thank you for your great work. I have a question.
Is it better to write:
const studentsUpper = students.map(element => element.toUpperCase())
console.log(studentsUpper);
instead of write a function? I've heard that the way I just wrote it more modern and even has a better readablitiy. Is it true? Of course unless we are gonna re-use it then I think a function is a better way.
Thanks again.
Do django course please
we'd like you to teach us React JS pleaseeeeee
I just love IT not YOU you know in the past vacances I just decouvered you and I always wanted to learn to code but I saw a video about python and I deractly begin coding (Sorry if my english is bad)
now I am in python and I really progress and cause of you I learned to be patience and to solve my errors.
Last thing to say
I LOVE YOUR CONTENT YOU ARE THE BEST
thank you bro!
How parts can be the array ?
it shows the month and the date but the year says undefined am I doing something wrong?
make sure you're using the correct index
0:01 No you don't gotta explain it 😭
mans quick
So simple....
hello world !😂😂
Hi
HI
DABA DAB ADA DABA DAB AEI DAB AEI DABA EO FUSHCI SKITHCI CIHI