javaScript call apply and bind

  Рет қаралды 357,425

techsith

techsith

Күн бұрын

Пікірлер: 745
@OhGurov
@OhGurov 8 жыл бұрын
English isn't my first language, but the way you are explaining - everything is accessebly! Thank you! Even reading in native language can't help me understand it so clear.
@ДенисКаракчиев-р1ю
@ДенисКаракчиев-р1ю 7 жыл бұрын
Согласен, у того же Кантора неплохо расписано, но не для новичков.
@AuthorReviews
@AuthorReviews 7 жыл бұрын
Тоже читал Кантора, именно эти методы мне сложно было понять. Сейчас все встало на свои места.
@gaganbedi4332
@gaganbedi4332 Жыл бұрын
his accent sucks, so does his teaching. He has the ability to make even simpler topics complex.
@DJLaCarone
@DJLaCarone 8 жыл бұрын
THE BEST TUTORIAL EVER!!! You should get a nobel prize for this man, Thank you so much!! :D
@Techsithtube
@Techsithtube 8 жыл бұрын
That is best comment i have ever seen :) People like you inspire me to make more videos. Thanks for watching
@livehappily2022
@livehappily2022 4 жыл бұрын
Good comments from us are more than Noble prize.... Genuine one 😃
@magnetars8
@magnetars8 2 жыл бұрын
How can I explain, your explanation, I just want to say oop... 👀
@emilandreasyan2374
@emilandreasyan2374 5 жыл бұрын
8:10 difference between call and apply: call() is used for function arguments, apply() is used for array values
@naoufalalaa6624
@naoufalalaa6624 2 жыл бұрын
Spread
@millennia
@millennia 9 жыл бұрын
Great tutorial. Make more, please :) "A[pply] for array and C[all] for comma"
@Techsithtube
@Techsithtube 9 жыл бұрын
+millennia Thanks. I am glad you like it. Check out my new tutorial on Closures in Javascript. :)
@ijasnijas
@ijasnijas 7 жыл бұрын
Or C for Column :D
@sauer.voussoir
@sauer.voussoir 6 жыл бұрын
B[ind] for Book. ABC
@captainboon2978
@captainboon2978 3 жыл бұрын
Very well explained, and that summary at the end eliminated any remaining questions I would have had. Thank you.
@Techsithtube
@Techsithtube 3 жыл бұрын
Glad it was helpful! Thanks for watching
@robs227
@robs227 5 жыл бұрын
You can also do: var bound = addToThis.bind(obj, 1, 2) to hard code the arguments. Then you can pass the last argument, for example, console.log(bound(3))
@sindhu1345
@sindhu1345 5 жыл бұрын
This would be called function currying
@eahofer
@eahofer 8 жыл бұрын
Agreed, concise. In short:- CALL = allows to bind a function to an object passed in at runtime (e.g. functionname.call(object, arguments) where inside of functionname, "this" serves as the pointer to the object) with immediate result BIND = alternative to CALL that gives you a function for later use
@electronrecord
@electronrecord 8 жыл бұрын
Clear tutorial, it is now clear what apply, call and bind does. Thank you.
@marioyeung154
@marioyeung154 9 жыл бұрын
It's super nice to use diagrams and simple examples (addition of numbers) to demonstrate the concepts. The concept itself, to a beginner, is hard to master. It will be more confusing if sophisticated example is used, but you use a very simple example. Thanks a lot.
@Techsithtube
@Techsithtube 9 жыл бұрын
+Mario Yeung Thanks!
@Josephrajp
@Josephrajp 8 жыл бұрын
Great Tutorial, And you are really a great tutor. This is the only video from which I understand (Call, apply & bind), I went through many videos to understand this, but you have explained it very well and it was very easy to understand. Thank you very much...
@newmagicfilms
@newmagicfilms 6 жыл бұрын
Arrows, circles, zooms , love, teacher... these should be your tags and title. I love you man! Explained perfectly!
@eddawry
@eddawry 2 жыл бұрын
I have good knowledge in constructor function and oop so It seems easy for me to understand it, but I think your explanation makes it very clear thank u very much for this awesome video.
@ajaygupta2143
@ajaygupta2143 7 жыл бұрын
The explanation given by you is very simple and easy to understand. Also it makes one to remember the concepts rather than going through big MDN documentations.
@Lachezariii
@Lachezariii 7 жыл бұрын
Amazing tutorials, man! You sir had produced the best Javascript tutorials that exist in all WWW space. Thank you!!!
@Techsithtube
@Techsithtube 7 жыл бұрын
Thanks for watching!
@shamshtabrez6492
@shamshtabrez6492 3 жыл бұрын
Best videos I have seen on call, apply and bind method. Thanks a lot.
@yunchenwang4075
@yunchenwang4075 7 жыл бұрын
was reading eloquentJS and got stuck on these functions, finally clear now. Thanks so much!
@miguelgomes9726
@miguelgomes9726 8 жыл бұрын
Brilliant video, thank you for this!
@Techsithtube
@Techsithtube 8 жыл бұрын
Thanks
@maxwelllasky4346
@maxwelllasky4346 9 жыл бұрын
This is one of the most straight forward and easy to understand tutorials on call, apply and bind. Great job +techsith thanks for helping out the community
@Techsithtube
@Techsithtube 9 жыл бұрын
+Maxwell Lasky Really appreciate your comment. This really motivates to make good tutorials. :)
@andrewmartin4045
@andrewmartin4045 8 жыл бұрын
Concise and effective tutorial. I bookmarked this video as I struggle with these concepts and get clarification every time I rewatch it. Keep up the great work!
@Techsithtube
@Techsithtube 8 жыл бұрын
Thanks :)
@syedm952
@syedm952 9 жыл бұрын
I was trying to understand call , apply for a while, but today I really was able to understand what is the difference between both of them. I really do appreciate it. Your examples are simple and you summarize everything nicely in a very short video.
@VinothKumar5403
@VinothKumar5403 6 жыл бұрын
One of the crystal clear explanation of the concept of call vs bind vs apply.
@Techsithtube
@Techsithtube 6 жыл бұрын
:)
@michaelmedel2449
@michaelmedel2449 7 жыл бұрын
Excellent! This has confused me for a while but now I i'm getting it! Thanks!
@jeffreybriceno
@jeffreybriceno 9 жыл бұрын
Thanks for the great totorial, finally I could understand call, apply and bind.
@VinothKumar5403
@VinothKumar5403 7 жыл бұрын
in KZbin lots of tutorial channel is there..but you are the best.simple and powerful examples.thanks a lot.this video made my day..
@Techsithtube
@Techsithtube 7 жыл бұрын
I am glad that its helping you . Thanks for watching! :)
@gabrielfono844
@gabrielfono844 3 жыл бұрын
it is very well explain since I have almost two years in coding I think begineer wont be able to understand. first . it is important to understand the "this " keyword this :reference the object that executing the current function. since the addTothis function will be an method of the object , then the this will reference that object. I hope begineer could understand it more please check out techsit video on 'this ' keyword first.
@technoman19
@technoman19 4 жыл бұрын
I have watched lots of tutorials but the way you explain everything is really great....thank you...
@sambasiva6753
@sambasiva6753 6 жыл бұрын
Great ...away some...suuper explanation with simple and easy example....great ..good
@Benas210
@Benas210 7 жыл бұрын
Really fan of your tutorials, one of the best tutorials on complex topics I seen so far. Thanks a lot
@Techsithtube
@Techsithtube 7 жыл бұрын
Thanks for watching :)
@stevenjchang
@stevenjchang 8 жыл бұрын
Wonderful job, your explanation was exceptionally clear. Good lecture style Thanks!!
@souravkaranjai6428
@souravkaranjai6428 8 жыл бұрын
This is a wonderful tutorial. The explanation is super simple to understand. Reading the documentation at the MDN site on this topic drove me nuts. Thank you for making this video.
@harithag6037
@harithag6037 5 жыл бұрын
There is no option called ‘love’ so I pressed ‘like’. Thanq so much for this great explanation 💕💕💕
@rishitrivedi442
@rishitrivedi442 7 жыл бұрын
Nice one. Able to understand differences between Call, Apply and Bind functions.
@manirajvenkata9319
@manirajvenkata9319 7 жыл бұрын
hi Rishi , i understood the call, apply & bind as various ways of printing output. If one method works well, why the other two ? what is the added advantage of having 3 ways of doing the same thing instead of one way ? Can you please explain ?
@dexternierva6503
@dexternierva6503 5 жыл бұрын
The best tutorial on JavaScript call, apply and bind. Thank you very much sir!
@Techsithtube
@Techsithtube 5 жыл бұрын
Thanks for watching Dexter.
@jerrycoffey
@jerrycoffey 7 жыл бұрын
I think this was an excellent explanation. I had been looking all over the web to explain call and no on else connected all the parts as well.
@truejohnsolo
@truejohnsolo 5 жыл бұрын
Like you, I was getting very confused about what these methods did or how to use them. But as soon as I'm watching your video these things have become much clearer. Superb job man, thank you so much
@khoitran5816
@khoitran5816 7 жыл бұрын
You sir are the sith lord when it comes to teaching. Thank you Thank you!
@Techsithtube
@Techsithtube 7 жыл бұрын
:) Thanks for watching!
@vladyslavkyiashko9753
@vladyslavkyiashko9753 4 жыл бұрын
Short and clear as always. Thank you for your tutorials, they are just great :) Hope it will help me on the interview tomorrow)
@rajchandak7578
@rajchandak7578 4 жыл бұрын
Awesome way to explain call, apply and bind thanx
@Techsithtube
@Techsithtube 4 жыл бұрын
Glad you liked it
@dooogyyyu
@dooogyyyu 7 жыл бұрын
Excellently clear & concise!
@rayprusia4753
@rayprusia4753 5 жыл бұрын
Good explanation of bind, call and apply. Thanks.
@mianbilalsadiqpannuhan59
@mianbilalsadiqpannuhan59 3 жыл бұрын
Thank you for this, it wouldn't be easy without your help. May Allah bless you for your aid. ameen.
@FreeHindiAdvice
@FreeHindiAdvice 4 жыл бұрын
પટેલ સર તમે ખૂબ જ સરસ રીતે પ્રોગ્રામિંગ સમજાવો છો... તમારો ખુબ ખુબ આભાર !!
@Techsithtube
@Techsithtube 4 жыл бұрын
thanks for the gujarati. maja padi gai vanchhi ne.
@Teteu.freitas
@Teteu.freitas 3 жыл бұрын
Despite it's an old video, it's very acctual, and very good explained! Thanks
@kangchen2101
@kangchen2101 8 жыл бұрын
Great tutorial! I can also use call, apply, and bind in nested function // call, apply and bind with nested function // it can be called as a closure var main = { num: 2, outer: function() { inner = function() { console.log(this.num); }; inner.call(this); // 2 inner.apply(this); // 2 var bound = inner.bind(this); bound(); // 2 } }; main.outer();
@Techsithtube
@Techsithtube 8 жыл бұрын
Yes, you are correct you can also use it like this.
@gabrielprrd
@gabrielprrd 6 жыл бұрын
You can use call with spread operator instead of apply. addToThis.call(obj, ...arr); Great video! Thank you for the content.
@Techsithtube
@Techsithtube 6 жыл бұрын
Yes that is correct. Thanks for sharing.
@kksaurab
@kksaurab 6 жыл бұрын
Awesome explanations of Call Apply and Bind. Today finally I understand the logic 😄. Thanks techsith for this. 😊
@Techsithtube
@Techsithtube 6 жыл бұрын
Krishan, I a tutorial on applications of call apply and bind. DO check it out.
@kksaurab
@kksaurab 6 жыл бұрын
techsith yeah sure. Thanks 😊
@christopherortega6257
@christopherortega6257 6 жыл бұрын
Very clear. You have the gift I wish every teacher had.
@satishchandra4785
@satishchandra4785 3 жыл бұрын
Techsith is best every time ❤️...Whenever there is an ad on his videos, man I click twice as a thank you and to support.
@RaGa_BABA
@RaGa_BABA 4 жыл бұрын
straight to the point explanation.....thankyou so much
@jeffersonteng988
@jeffersonteng988 7 жыл бұрын
Nice video, explains it very clearly using a simple example. Props for u
@mahmoudhassen4463
@mahmoudhassen4463 3 жыл бұрын
Thanks for your clear explaination. IDK why nobody talks about these useful methods.
@kebluetugirafee7558
@kebluetugirafee7558 7 жыл бұрын
Hei,Man.Your tutorial is slow at speed relatively.But I like it,you explain clearly enough and give me time to think.Unlike other tutorials ,I have to pause,think a moment,and then play frequently.
@Techsithtube
@Techsithtube 7 жыл бұрын
Thanks for watching! :)
@fatjonrrapaj6834
@fatjonrrapaj6834 2 жыл бұрын
If this is not clear I don't know what can be more clear, thank you for this crystal clear explanation
@Techsithtube
@Techsithtube 2 жыл бұрын
You made my day , thank you for watching
@abhayagarwal5097
@abhayagarwal5097 4 жыл бұрын
Tysm man,i just started learning js and got stuck with the ambiguous explanation in tutorials on net,so decide to look on KZbin and you just made all my doubts cleared or i would have even given up on learning JavaScript !
@TechSnazzy
@TechSnazzy 6 жыл бұрын
Awesome video! Thank you. You took a subject that I was struggling with and helped me make total sense of it.
@Techsithtube
@Techsithtube 6 жыл бұрын
I am glad you got it. Thanks for watching!
@economis411
@economis411 4 жыл бұрын
it takes 14 years to understand this by your video, thanks god who permit this miracle to me
@prabhatkumar08
@prabhatkumar08 7 жыл бұрын
Supereb ...how easily you explain this. Very good job, Thanks A lot.
@SherlockMen
@SherlockMen 7 жыл бұрын
7:20 That's what she said hahaha :D Great video
@Techsithtube
@Techsithtube 7 жыл бұрын
:)
@TheNilesh00
@TheNilesh00 7 жыл бұрын
omg, amazing catch
@ishwarrimal1393
@ishwarrimal1393 6 жыл бұрын
lol. .Crazy
@timhysniu
@timhysniu 6 жыл бұрын
good one :)
@LinkChenTW
@LinkChenTW 5 жыл бұрын
I heard the voice from Michael Scott lol
@IonutSultana
@IonutSultana 8 жыл бұрын
Great tutorial mate , keep up with the good work :)
@santra528
@santra528 4 жыл бұрын
Thank you @techsith. You have explained this confusing topic very easily and cleared the doubts. Thanks once again. Keep rocking!!
@ill-fatedstranger447
@ill-fatedstranger447 6 жыл бұрын
First i saw JS mock test part 1. In that part there is a problem which is solve by using this concept. But at that time i wasn't able to get the solution which are you shown. But it's now clear to me.
@haleemulhassan9158
@haleemulhassan9158 8 жыл бұрын
Perfect explanation man. Absolutely perfect. Giving examples with clear cut simple explanation took all the confusion away :)
@vsabreu
@vsabreu 8 жыл бұрын
Great video, your didactic is clear and straight to the point. Cheers from Brazil!
@Techsithtube
@Techsithtube 8 жыл бұрын
Thanks
@joehuangathome
@joehuangathome 8 жыл бұрын
Very clearly taught in a very simple straightforward example.
@kavithamuthukumar3635
@kavithamuthukumar3635 3 жыл бұрын
Wonderful tutorial to understand the concept of Call, apply and bind.. I find it really helpful and useful. Thank you for creating such awesome tutorials with clear explanation
@Techsithtube
@Techsithtube 3 жыл бұрын
Glad it was helpful! Thanks for watching!
@shashanksharma3177
@shashanksharma3177 7 жыл бұрын
i was trying to get it from lot many days , but this was simply best explanation . Thanks for sharing.
@Techsithtube
@Techsithtube 7 жыл бұрын
Thanks for watching!
@mattbeiswenger8465
@mattbeiswenger8465 6 жыл бұрын
Great video with very clear and concise explanations. Also loved that you did a summary at the end. Thanks!
@vinsonchuang7950
@vinsonchuang7950 9 жыл бұрын
When I finished watching this video, subscrible right now! Perfect tutorial...
@the_sweet_heaven
@the_sweet_heaven 5 жыл бұрын
Very good explanation. cleared so many doubts
@paulosilva-dm1qb
@paulosilva-dm1qb Жыл бұрын
With you Sir it´s always clear, Thanks!!!!!!!!!!!!!
@wilfredomendez3450
@wilfredomendez3450 7 жыл бұрын
Clear, concise and to the point. Thanks.
@bhuwandevshali6688
@bhuwandevshali6688 8 жыл бұрын
This was so simple :) MDN has a million page documentation on call, apply and bind :)
@GerardoBelot
@GerardoBelot 8 жыл бұрын
+Bhuwan Devshali Absolutly true XD
@krishnabala7359
@krishnabala7359 5 жыл бұрын
Great and awesome bro .... You're making many lives easy with all these
@sahilthakur867
@sahilthakur867 7 жыл бұрын
I love your videos man! Best explanations ever.
@Techsithtube
@Techsithtube 7 жыл бұрын
Thanks for watching :)
@dubeykivines9202
@dubeykivines9202 4 жыл бұрын
It was never so easy ever to understand this tough concept. Big thumbs up 👍 to you Man.
@bharathmadesh1761
@bharathmadesh1761 5 жыл бұрын
Finally found a great tutor 😊👌
@Techsithtube
@Techsithtube 5 жыл бұрын
Thanks for watching Bharath!
5 жыл бұрын
Crystal clear! Thx!
@SimKieu
@SimKieu 3 жыл бұрын
Thank you! Best explanation I've seen!
@Techsithtube
@Techsithtube 3 жыл бұрын
Sim, Glad it was helpful!
@crispe1586
@crispe1586 5 жыл бұрын
This tutorial was so amazing and eye-opening, thank you so much!
@Techsithtube
@Techsithtube 5 жыл бұрын
Also check it out the applications of call apply and bind. kzbin.info/www/bejne/d4q5iqubr9eAjaM
@khalidhashimeh
@khalidhashimeh 8 жыл бұрын
great video..like you said at the beginning of the video, this concept is really confusing in JavaScript, and you made it very easy to understand..it's not confusing anymore..thank you..
@TheOneEd83
@TheOneEd83 7 жыл бұрын
I like your videos. I would love to see real practical examples. :)
@yakirnaim3900
@yakirnaim3900 6 жыл бұрын
Really thank you ive had a hard time with bind and you explained it very easly
@ciolea
@ciolea 8 жыл бұрын
nice tutorial, it will be handy for the JavaScript exam tomorrow :D
@SHUBHAMGUPTA-ls2dr
@SHUBHAMGUPTA-ls2dr 3 жыл бұрын
Best explanation ever I have found for this😁
@alokranjan476
@alokranjan476 6 жыл бұрын
This is very clear Sir, I was searching for these kinds of video from a very long time. Thanks for making such a beautiful video.
@sureshmg6786
@sureshmg6786 5 жыл бұрын
Excellent job man!! Very well explained. Thanks a lot!! Please continue this great job :)
@williamtitterton818
@williamtitterton818 8 жыл бұрын
nice job, I found this tutorial really easy to understand, so thank you and keep up the good work
@venkateshgupta5219
@venkateshgupta5219 5 жыл бұрын
Sometimes u r going out of the scope, maybe not able to collect your thoughts of next topic or example while presenting something. Same for other videos too. Except this, you r awesome.
@BabarKhan-jt1ju
@BabarKhan-jt1ju 8 жыл бұрын
I like your way to tell the things.
@ramyalayan9121
@ramyalayan9121 6 жыл бұрын
kinky
@demiansims728
@demiansims728 6 жыл бұрын
Great explanation and crucial for understanding when you get into frameworks like React
@Techsithtube
@Techsithtube 6 жыл бұрын
Feel free to check out the next video on the applications of call apply and bind on my channel .
@swarasworld4439
@swarasworld4439 7 жыл бұрын
Very Well Explained ...Thank You.
@allanonyango6447
@allanonyango6447 4 жыл бұрын
I have understood your explanations and cleared my doubts...Thank you
@eddiemuller3157
@eddiemuller3157 8 жыл бұрын
Excellent explanation. I just got something going that I've been looking at on and off for the past two days by fully understanding .apply() :)
@md.imanali9998
@md.imanali9998 7 жыл бұрын
Clear explanation. It's really good
@Techsithtube
@Techsithtube 7 жыл бұрын
Thanks for watching!:)
@lq9271
@lq9271 6 жыл бұрын
Great video! Helped so much, saved lots of researching time.
@surafelamsalu5259
@surafelamsalu5259 3 жыл бұрын
I couldn't thank you enough well-done thanks !!!!
@Techsithtube
@Techsithtube 3 жыл бұрын
Glad it helped! Thanks for watching Surafel!
@404GHXST
@404GHXST 9 жыл бұрын
Clearest explanation i've ever seen!
@Techsithtube
@Techsithtube 9 жыл бұрын
+Richard Pap thanks :)
@jeromecaruso5065
@jeromecaruso5065 4 жыл бұрын
Great video, but could you use these in more of a real world example or more complicated function. Thanks for the great content!!
@rajivbagade
@rajivbagade 8 жыл бұрын
good to understand in a simple way Thanks.
@Shetu_Sharma
@Shetu_Sharma 4 жыл бұрын
i just started commenting what if function have multiple arg........... i just heard you saying the same ...... you really great! sir ;)
@Techsithtube
@Techsithtube 4 жыл бұрын
Thanks Shetu for watching. yes if function have multiple args use call .
It works #beatbox #tiktok
00:34
BeatboxJCOP
Рет қаралды 41 МЛН
My scorpion was taken away from me 😢
00:55
TyphoonFast 5
Рет қаралды 2,7 МЛН
小丑教训坏蛋 #小丑 #天使 #shorts
00:49
好人小丑
Рет қаралды 54 МЛН
Tricky JavaScript interview questions and answers
21:01
techsith
Рет қаралды 133 М.
Async JavaScript - Callbacks, Promises, Async/Await
25:10
codeSTACKr
Рет қаралды 63 М.
Async Await JavaScript ES7
26:39
techsith
Рет қаралды 120 М.
call, apply and bind method in JavaScript
10:50
Akshay Saini
Рет қаралды 490 М.
Javascript Prototype inheritance Explained  ( tutorial  Part1)
11:25
Javascript Closure tutorial ( Closures Explained )
12:52
techsith
Рет қаралды 544 М.
STOP Using Classes In JavaScript | Prime Reacts
14:02
ThePrimeTime
Рет қаралды 256 М.