This is the best explanation, simple and clear explanation I have seen. Thanks man
@dcode-software
4 жыл бұрын
No worries, man
@suzanamiceli8309
2 жыл бұрын
@@dcode-software I have to agree with him! I was very confused about this and now I get it!! Thanks ♥
@MarstonH
3 ай бұрын
agreed. dcode is the best
@lev6666
11 ай бұрын
Watched several videos with bind explanation, this is the best one. thanks!
@tonisihvola71
4 жыл бұрын
Easiest subscription of my life :) Your way of teaching is superior to anyone teaching these subjects, by far. - Breaking the topic into clear and understandable steps. - Going through the subject with simple examples, of how the code fundamentally works. - Explaining what happens, when the piece of code is not applied (Simply, not leaving any questions behind) Please, keep it up.
@dcode-software
4 жыл бұрын
Appreciate that! Thank you very much
@tannerbarcelos6880
4 жыл бұрын
This is literally the best video on bind() out there. I’m starting to slowly really get the quirky things of JS. You earned a sub. I’m gonna go watch more of your vids now!
@dcode-software
4 жыл бұрын
I appreciate that! Cheers :)
@theanimaprojectllc
26 күн бұрын
Hey man. Hoping that you’re a full stack monster now!!❤
@eurostar_
2 жыл бұрын
This is one of the best javascript tutorial channels i've ever watched on KZitem. You rock!
@maceakkari2478
6 жыл бұрын
By far the most simplest and most effective explanation out there. thank you
@dcode-software
6 жыл бұрын
No probs mate, thank you!
@pouvoircerveau7826
6 жыл бұрын
very clear explanation,great work man ,keep it up
@dcode-software
6 жыл бұрын
No worries mate, thank you.
@billychanclub8622
3 жыл бұрын
"Bind an object to a function" This makes so much sense now, that's exactly what I needed to understand this. Thanks!
@okeibunorfavour257
3 жыл бұрын
Love how you went straight to the point. Great Job!
@ahora1026
6 жыл бұрын
So everyone in the comments are right. This explanation is a bit different from the others. Simple, understandable and no confusing words.
@dcode-software
6 жыл бұрын
Thank you! Very happy to hear it could help you 😁
@bbuiu
3 жыл бұрын
i am from Brazil, i bought a course in my language (portuguese) and i saw 4 times the explanation in my class and i can´t understand, so i come here and see you explanation, perfect i understand clearly, thanks!
@techniquejoseph
Жыл бұрын
Thank You,. To the point, plain and clear. dcode is in my Top 5 for Tutorial Content Creators. Appreciate you dcode.
@gabrielfono844
4 жыл бұрын
damn I was stuck in react and didn't know thanks for finding this video on youtube
@sevakify
4 жыл бұрын
me too :))
@SomeshNukala
5 ай бұрын
Understood clearly finally about bind method. Best video for bind method
@dcode-software
5 ай бұрын
Thank you 🙏
@premkatta1128
5 жыл бұрын
Great explanation, simple and straight to the point. This video should reach more people.
@dcode-software
5 жыл бұрын
My pleasure mate
@mehra.akshit
5 жыл бұрын
Very clear and to-the-point explanation. Thank you!
@dcode-software
5 жыл бұрын
No probs!
@MrBaykalcelik
2 жыл бұрын
The best explanation for bind method. Thanks sir. You should have more subscriber.
@ashuvssut
3 жыл бұрын
This is a super simple and crystal clear explanation. Thanks for the MDN Link below... I was gonna google that anyway for... u know.. 'extras'😁
@TimoEngelvaart
4 жыл бұрын
Was working on a React course and couldn't quite get my head around the use of 'this'. Thank you for your clear explanation.
@LotfiOR
4 жыл бұрын
Same here. Coming from a React course. Saw many other videos. This one explains exactly what I needed to understand 🙂
@sparshgupta8078
4 жыл бұрын
amazing explanation , no time wasting ,on to the point . that is what a learner needs
@sreerup_dhrino
4 жыл бұрын
Bestest bind video.... Just what I was looking for..
@madhvikathar6972
3 жыл бұрын
Short and very clear explanation, Thank you!!!
@HologramJay
4 жыл бұрын
Dude, thank you so much for this breakdown. I've taken courses from popular udemy teachers, only to have them gloss over confusing topics like these(Looking at you "Javascript : Understanding the Weird Parts"). Thanks again, man!
@MohamedhabibBellaaj
4 жыл бұрын
This is the best demonstration of the function bin I have seen. Thank you, man :)
@nerdiloo9863
5 жыл бұрын
The most succinct example of JS bind. Many thanks 👍.
@dcode-software
5 жыл бұрын
No probs mate!! 🍻
@nikhilchandraroy1094
4 жыл бұрын
I have seen stackoverflow that was little bit of difficult but you are so simple to teach us, keep up man,
@sakshamsharma3360
8 ай бұрын
Great explanation. Simple and Clear. Thanks
@jesper2455
2 жыл бұрын
Would have liked to see you mention how call and apply relates to bind since they often get confused. Would also have been nice with some real-life examples of when bind is useful. Apart from that it's a good video!
@gennieapulova8017
5 жыл бұрын
one of the best explanations of bind/this .. thank you!
@dcode-software
5 жыл бұрын
No probs :) glad you liked it
@CiscoZero
2 жыл бұрын
B-E-A-U-TIFUL! Thank you so much, dcode Narrator!
@ubaidillah71
5 жыл бұрын
Very good explanation. Thanks, im very confused before and now i can understand clearly 👌
@dcode-software
5 жыл бұрын
No problem!
@weitingtam
5 жыл бұрын
Awesome video! Bind has been bugging me for months and the documentation isn't the clearest and I keep seeing and using it in tutorials but never really understood how it actually worked. Thanks for the clear explanation and helpful examples :)
@arslanramay7992
5 жыл бұрын
A very clear and to the point explanation. Great work. Thanks!
@dcode-software
5 жыл бұрын
My pleasure mate!
@cassianocominetti7784
Жыл бұрын
Straight to the point! Amazing video! Thank you!!!
@ramusesandasari8451
6 жыл бұрын
Last week I could not answer properly to this question When I attended interview , but now I can ...... Yeah .Thanks for this awesome video
@dcode-software
6 жыл бұрын
No worries! Good luck for the interview 😁
@ramusesandasari8451
6 жыл бұрын
Thanks .And can i know your name and about yourself
@omarchin-keow5319
6 жыл бұрын
apprently that's a nope! >_
@kimonushki
4 жыл бұрын
@@ramusesandasari8451 Every video he says "My name is Dom ..." so there's half your question answered.
@theman7050
Жыл бұрын
2 questions, Dom: 1. Bind is only suitable where only 1 variable needs to be passed in a function? 2. Is it necessary to use a variable to call function that way? I mean, directly calling functionName.bind(c1) should also call it?
@rod6722
2 жыл бұрын
That was a very clear explanation. Thank you!
@edinetgrunhed6000
3 жыл бұрын
wow,im impressed with this simple explaination
@makadibalazs
4 жыл бұрын
Ah, you saved me here man :). I was struggeling to understand this(lol)!
@paxFilipinas
2 жыл бұрын
Thank you, this was a really helpful, quick explanation
@mahmoudnasr8710
3 жыл бұрын
Perfect Explanation .Keep up the Great Work
@carusosiza154
4 жыл бұрын
Beautifully simple examples - thankyou.
@iQCudi
3 жыл бұрын
yo bro you tackled a mind block I had in a second, thank you so much. New sub.
Hahaha! Thank you mate glad to see you enjoyed it 😁
@dexterwong3533
5 жыл бұрын
awesome explanation... just a few words and got a light bulb moment. Great!
@dcode-software
5 жыл бұрын
Yeh mate no worries!! 😁
@gargshishir3
5 жыл бұрын
Great job explaining bind! I finally understand it.
@dcode-software
5 жыл бұрын
Glad I could help you mate
@aligu7
4 жыл бұрын
What if bind method has 2 arguments? for example : functionName.bind(arg1, arg2) ???? What does it mean. Plz some one help me
@limitless1692
4 жыл бұрын
Beautiful explication . You are GOLD Thank You ! :)
@trycatchlearn
5 жыл бұрын
its crystal clear explanation, great job man
@dcode-software
5 жыл бұрын
No problem mate!
@netuse4956
3 жыл бұрын
founded really wonderful explanation , loved it, found what i needed
@dcode-software
3 жыл бұрын
You're welcome
@devinbuntin2123
3 жыл бұрын
Super clear and concise explanation man, thanks! Subscribed. 🙏🏾
@annieluo6870
3 жыл бұрын
thank you, you explained this so simply!
@rdmammad5721
4 жыл бұрын
Like... Super explained, but I do not understand one thing, why printCoordinates() (5:15) did not returned "undefined x,y error" messages?
@abulkalamazad6022
4 жыл бұрын
Thank you, DOM! You explained it well ☺️
@abdoulabdoulmohaymen5
4 жыл бұрын
Explained very good and simple. Thanks!
@dcode-software
4 жыл бұрын
No problem
@codingworld6762
4 жыл бұрын
Very well explained!good work!!
@dcode-software
4 жыл бұрын
No problem!
@welcometochristown
4 жыл бұрын
Very good explanation of bind. Thanks alot!
@dcode-software
4 жыл бұрын
No problem!
@andideveloper8345
6 жыл бұрын
Good work bro ! A unique explanation!
@dcode-software
6 жыл бұрын
Thank you! I hope it helped 😁
@seeprabu22
5 жыл бұрын
Crystal clear explanation. Thanks a lot.
@dcode-software
5 жыл бұрын
No problem, mate
@thisisitmj1
3 жыл бұрын
Love it. Clear way to explain it!
@maremeaxi3344
5 жыл бұрын
the best video about bind(); ;))))
@dcode-software
5 жыл бұрын
You're welcome
@dijiflex
3 жыл бұрын
thanks this was a very clear explanation
@satishmaurya2089
2 жыл бұрын
thanks a lot buddy, very nice explanation
@swopnilmaharjan8630
2 жыл бұрын
what if we do c1_func = new printCoordinates.bind(c1); and then call c1_func() what happens in this?
@henriquedeveloper8101
3 жыл бұрын
Good explanation man, thank you!
@devendradeo518
4 жыл бұрын
perfect example, thanks
@dcode-software
4 жыл бұрын
No worries 😊
@amiladrck
4 жыл бұрын
Thank you! Straight to the point.
@olinkirkland
2 жыл бұрын
Great explanation! Subscribed!
@sgamer1770
3 жыл бұрын
if you use printCoordinates(c1), why does it output: 'undefined, undefined'
@benabernethy1405
2 жыл бұрын
Thank you man! Great explanation
@Supernova12034
Жыл бұрын
Great tutorial..is that the primary usage of the bind method? To bind objects to functions??
@philippalbrecht9023
5 жыл бұрын
Anyone know a specific use case for this? Why not just pass the objects as parameters to the function?
@eddiedantes7732
Ай бұрын
This use case could be applied when setting a regular function as an argument. If the regular function is not called as a method then this may not reference the object it is intended to reference. However, using an arrow function avoids the need to bind the this keyword. Also, sometimes you might want to use an object's method on a different object that doesn't have the method. TLDR, if you think the this will change dynamically you can use .bind anticipating the change and ensure the function executes referencing the correct object
@bounce21190
3 жыл бұрын
Appreciate the in depth explanation, keep it coming!
@dcode-software
3 жыл бұрын
Thanks, will do!
@sahithivadla1187
3 жыл бұрын
Such a clear and concise explanation. 👍
@PJ-od9ev
Жыл бұрын
thank you. how about someFun.bind( null , 'some_arg' ) what does it mean? what does it do? what is it for?
@ranitdey7369
3 жыл бұрын
You explained it real nice. keep it up!
@mrxinu
5 жыл бұрын
That was an excellent explanation. Thank you!
@dcode-software
5 жыл бұрын
No worries mate
@AlexTechie
4 жыл бұрын
EDIT: Okay, I read the docs again, and it turns out that `bind()` creates a whole new function. You did mention that at 3:05, so I apologize (even though I didn't mean any ill will towards you). Still, I think it should be stressed that it creates a whole new function. This is a huge distinction between `bind()` and `call()` / `apply()`, which do not create a new function. ---- 2:52 That's a monumental step you glossed over and I was really hoping you would explain it, as even MDN doesn't discuss it. But I figured it out on my own after wondering why my lab example of `bind()` wasn't working. This is my understanding of it: `bind` is a method that sets a property on a function. If you try to run the function as `printCoordinates.bind(c1)`, nothing happens. If you try to run the function as `printCoordinates().bind(c1)`, it'll execute (with undefined on console.log outputs) and then give you a type error. For anyone reading: if you don't want to assign the function to a variable and, instead, just want to execute it immediately, the secret is to invoke the function by adding parenthesis at the of `bind()`. For example: `printCoordinates.bind(c1)();`
@dcode-software
4 жыл бұрын
Yeah good explanation, appreciate the feedback! 🍻
@shrestha0144
4 жыл бұрын
straightforward..thanks
@coolmind2476
6 ай бұрын
Why would one do this Strange Binding, whats the benefit? Why not call the function with parameters?
@MiserableDuck95
5 жыл бұрын
Great explanation
@dcode-software
5 жыл бұрын
Glad you liked it mate
@danvilela
4 жыл бұрын
Excelent video! Thanks for this. What is the VS Code theme used?
@tdreamgmail
4 жыл бұрын
Why would you do this over passing the arguments through or even destructuring?
@GaneshKumar-fu7xt
3 жыл бұрын
easily understandable Thanks bro :)
@mahbubtonoy6974
2 жыл бұрын
Coolest Explaination. Thank You
@BoredBricks
2 жыл бұрын
Is there a way to use bind with ES6 style functions?
@passandscore_
3 жыл бұрын
Awesome explanation!!!
@blendjams
4 жыл бұрын
Best explanation. Thanks :)
@aravindelumalai8727
4 жыл бұрын
Thank you friend.. Useful video..
@preciousadeyinka2786
3 жыл бұрын
Thanks man, this is helpful!
@giladbenatiya
5 жыл бұрын
great explanation you are good
@dcode-software
5 жыл бұрын
Haha thank you mate
@youngun550
Жыл бұрын
Great video. I'm not sure why this would be better than just passing in an object though?
@AK-Star007
3 жыл бұрын
Great explanation, thanx
@muhammadainuddin4650
4 жыл бұрын
Great explanation, Thanks
@dcode-software
4 жыл бұрын
No worries
@cescr3821
Жыл бұрын
simple and clear ty
@tbethauser
4 жыл бұрын
Excellent, so helpful!
@avimehenwal
3 жыл бұрын
Now I am thinking what could be the use-cases where I can use bind? Please help, if you already have some use-cases where you have used js bind? thanks
@dcode-software
3 жыл бұрын
Bond is used less these days as arrow functions are now widely supported. But maybe you can use them with "addEventListener"?
Пікірлер: 237