Multiple Arguments Vs. Options Object - JavaScript Tips

  Рет қаралды 2,855

Karl Hadwen

Karl Hadwen

Күн бұрын

Пікірлер: 17
@CognitiveSurge
@CognitiveSurge 4 жыл бұрын
👋Hi everyone, I thought I'd try something a little different, so here it is...I'm going to be mixing up my videos going forward, so let me know what you think! I hope you enjoy this little tip & please remember to LIKE & SUBSCRIBE! Let me know what sort of topics you'd like me to cover, I'm going to be doing these little tips as I think they'll help you a lot and they're short clips! Stay safe! 💙
@joostschuur
@joostschuur 4 жыл бұрын
No need to start an argument. I don't object to your views here. The parameters of your point are functionally sound.
@CognitiveSurge
@CognitiveSurge 4 жыл бұрын
😂😂 bravo 👏
@zourdy697
@zourdy697 3 жыл бұрын
thanks that's absolutely useful tips!!! potentially saving my development time
@CognitiveSurge
@CognitiveSurge 3 жыл бұрын
Great to hear!
@adamtak3128
@adamtak3128 4 жыл бұрын
I haven't thought about this before. Pretty useful tip. +1
@CognitiveSurge
@CognitiveSurge 4 жыл бұрын
Glad it was helpful!
@FreckledPainter
@FreckledPainter 4 жыл бұрын
Great little video, would love to see theses become a regular feature on the channel
@CognitiveSurge
@CognitiveSurge 4 жыл бұрын
Thanks Jack, it's nice to have some feedback! I'll keep these coming :)
@nnaemekaish007
@nnaemekaish007 4 жыл бұрын
In the case of reusing the function, I think having declared the function with default parameter values might make the approach of using parameters more convenient than an object right?
@CognitiveSurge
@CognitiveSurge 4 жыл бұрын
Yeah, whatever works, you can use defaults on destructured values too
@zhasan66
@zhasan66 4 жыл бұрын
Very helpful tutorial. Thanks a lot.
@CognitiveSurge
@CognitiveSurge 4 жыл бұрын
Glad you liked it :) thanks for watching!
@JohnBuildWebsites
@JohnBuildWebsites 3 жыл бұрын
What do you think about passing an object via props in react, instead of lots of individual props?
@CognitiveSurge
@CognitiveSurge 3 жыл бұрын
It depends, I like to pass individual props, but it depends on the structure of what I'm passing, both work well, but for objects I'm always more hesitant just because it can cause a re-render with the object reference changing
@phantom7132
@phantom7132 4 жыл бұрын
This comment gives you motivation to make more of these videos. You seem to have a pleaseant character :-).
@CognitiveSurge
@CognitiveSurge 4 жыл бұрын
Thank you so much, it definitely does. It takes a lot of time to create videos, so I appreciate all the kind comments. I hope you're well in this time and always feel free to let me know if you need any help!
Setup ESLint, Prettier & Airbnb Style Guide in under 2 Minutes
1:54
useEffect In 6 minutes - React Tutorial - Learn React in 2020
6:22
coco在求救? #小丑 #天使 #shorts
00:29
好人小丑
Рет қаралды 120 МЛН
10 Must-Have Tools for Web Developers: The Ultimate List
15:36
Karl Hadwen
Рет қаралды 10 М.
Why You MUST Install NVM: Master Node.js Version Management Now!
4:21
I Built An iOS App That Was Featured by Apple!
11:03
Karl Hadwen
Рет қаралды 2,3 М.
coco在求救? #小丑 #天使 #shorts
00:29
好人小丑
Рет қаралды 120 МЛН