.some(), .every(), .find() and [...SPREADS] — Array Cardio Day 2 - #JavaScript30 7/30

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

The enthusiasm you have for coding is inspiring.

I'm here from The Odin Project, and I keep referring back to these videos like a textbook. You're doing some really valuable work here!

MikeSealey_nhhc
Автор

I appreciate how you show the different ways to format a code from most basic to then write it again in a more advanced/more compressed format.

ThePolaris
Автор

TOP brought me here, thank you so much for these exercises. You don't waste time and you give great explanations on your projects!

UNKNWN
Автор

.some() 0:21
.every() 2:35
.find() 3:01
.findIndex() 4:40

thenextkawhileonard
Автор

I'm currently a ball of stress prepping for a bootcamp interview and I just wanna say that gave me my first laugh in literal days. Thank you, I needed that lmao

NCJHE
Автор

Awesome video! Currently doing the Odin Project and your explanations are incredibly good.

mikesalcedo
Автор

Last video lesson on the foundations section! Lets keep it pushing guys!!!

Luvictus
Автор

Hi Wes Bos, another day, another cardio. I am really enjoying practicing with you.

DragonWhisky
Автор

.some(): 0:20
.every(): 2:32
.find(): 3:01
.findIndex(): 4:39

Автор

Great video!

However for new programmers: at 2:30, I think someone being a "hot shot" isn't necessarily a good thing. It's important to write code such that it is "self-documenting". By getting rid of the "currentYear" variable, it makes it less clear what you're actually getting from that "new Date()" constructor.

The arrow function prior to that is probably the best iteration of this function just because it declutters. However, an "if" block is also totally acceptable if you feel that is more readable.

connorskudlarek
Автор

This JS 30 day challenge is a great idea! fun way of practicing. Thanks for this Wes!

clublati
Автор

I think the `.filter()` approach is an equally preferable approach for the last item. It's kind of a missed opportunity too, to discuss the other parameters of the callback functions for `.map()`, `.filter()`, and `.reduce()`

I initially went with `delete comments[idx]` approach which, while it mutates the original array, does not update its length, and Google searches points me to using `.splice()` instead (as you have done here)

re.liable
Автор

4:10 that part made me laugh so hard it was so unexpected 🤣

idktbh.
Автор

I was about to fall asleep and you go 04:10😂😂😂

shubham
Автор

These are just an awesome set of tutorial videos!! I think I should have started with the ES6 tuts first but that is next on the list! Thanks Wes

DannyFunny
Автор

You are funny man!😂 Thanks for the video

goodnight_beats
Автор

I don't know why 4:05 made me laugh, I love it 😭

meloviiii
Автор

Just had a small query, is there any major disadvantages of using let instead of const - i.e. declaring variables instead of constants?
I have so far seen most tutorials (if not all) have a preference for constants.
But due to my very limited experience in coding & (bad) habits, I find myself using variables so that I can reuse the same without having to reinvent a new constant name.
What I wanted to say is, say in a function I need to use 5 DOM objects at five different times (will never be reused once done with it) - I find it much easier to use a single variable and keep assigning it with a new object as and when needed.
Any help in this direction will be much appreciated. Don't want to develop a bad habit early on :-) .

ShaunakHub
Автор

Listening to the intro with beats on trips me up every time 😭

davidolona
Автор

I really like how nimble you are with your lines of code. how did you manage to move a line of code from on line to another? I'm referring to the edit made @1:46

adamnasra
welcome to shbcf.ru