Thanks so much for this. Currently learning Javascript on Codecademy and was hell of confused at the "HIGHER-ORDER FUNCTIONS , Functions as Parameters" section, but this clarified everything. I'm so grateful. I've previously favoured interactive learning of CodeCademy and FreeCodeCamp, but you've made me now look at video tutorials in a new light
This is exactly what I needed to understand how callbacks work. I'm doing a node tutorial that has anonymous callbacks defined in-line and i had no idea why you would go out of your way to make a function more complicated by writing a function around it. This clears it up SO much
This is the best description of callback functions I've seen in all the internet. ...and believe me I've searched far and wide. Thanks for breaking this down for us!
Thank you, thank you, thank you.....I thought i'd never understand "callback" function, I've watched a few videos on this subject and could not grasp it and nearly gave up........but now......Thank you again.
This is the first video anyone and everyone should watch on this. So many videos go SO deep and complex without covering the basics that its almost impossible to learn. But you my friend. Are the best.
I have been trying to understand callbacks all day on various blogs and other videos and this is the first time it is making a lot of sense. Great video and explanation.
Sorting example was just awesome...I am almost following your channel for more than a year and get the job also as a node is developer...all credit goes to you 😄....now planning to learn data structures and algorithms... could you please help where I can start using JavaScript... because most of the examples are in Java or other languages...I want to do it practically.... thanks again I am earning bread for my family because of your channel :)
Whenever I'm about to watch your video I know that by the end of it I'll understand the concept I couldn't wrap my head around. Thank you, kind sir! PS. Thanks for taking time to brush up on your accent. Normally it's quite difficult to understand everything when the speaker has a strong accent. Have a nice day, kind sir!
Excellent point man (y) The way you introduced callback satisfies the Open&Close principle in SOLID. The O stands for: Open for extensions but close for modification. We are able to extend function "calc" as much as we want, but should not modify it ;) Love your tutorial!!!
Thanks for such an excellent video on callbacks. I've read a lot and been through a few videos trying to grasp callbacks and it hasn't clicked in my head until I came across your video.
Out of all of the videos on youtube, it's this one that gave me the eureka moment. I was very familiar with using callback functions in this way: someVar.addEventListener('click', () => {callback}) but creating a callback as a parameter for another named function really threw me off. Reall well explained. Thanks dude!
I'm a java developer with 5 years of experience in the technology and peripheral frameworks. I've recently started to mug into JS as our new requirements are all transitioning into it. As you can understand it's a new territory and the all these functions acting weirdly is mind numbing for a java guy. Thanks so much, your video helped me so much in understanding the core need for callbacks. Please make one on promises.
Hi there! your videos are very easy to understand and are all briefly explained, thankyou for making these videos! also I think it would be useful for you to create videos talking about the classes, constructors, and extending them in es6 because they seem to be also something which is going to be helpful at times. :)
You are teaching many valueable javascript lessons in a easy way. Your free service is highly appreciated. We were really dummies before we look at your lessons.
Recently interviewers have asked stunning questions which I didn't expect. 1) How do u handle cache 2) How do u handle offline when DB disconnected, still my application should survive with offline data downloaded previously, once DB is connected then it should handshake and continue as normal 3) Handling Threads in Javascript when server need more time to process and send results to the client 4) minification of js. Is it so important? Usually ignore that 5) Versioning management in javascript. Is it so important? Usually ignore that 6) Unit testing in javasciprt Other than these broadly lot of client side frameworks need to learn. (AngularJS, Backbone JS, Ember JS, Node JS, Require JS, Polymer, Handlebar, etc).
All the really good topics. 1) Handling cache You can do something like this in your html scr="myJs.js?121212" basically add a new number every time your deploy. There is a good solution using gulp . I will create a tutorial on that. 2) How to handle offline ( there are multiple solution to this. If you are using a JS platform you can use their technique. for exmaple if you are using ember.js you can use ember data. I will have to create a tutorial on that. 3) for handling the Threads in Javascript ( I have a tutorial on that th-cam.com/video/pMK-jcOAYI8/w-d-xo.html) 4) minification.js it is important depending on your application and number of users. Tell me the size of your application and number of people involved. there is a gulp solution which is very easy to implement) 5) Which versioning management are you referring to ? 6) Unit testing is very important, however this again depends on the size of your application . If you are using a javascript platform, versioning comes with it so you can use it there . I will make a tutorial on that. I am going to start Angular2 and EmberJs tutorials really soon. Angular2 is the latest platform and a very important one. EmberJs would cover handlebar as well. I am also thinking about polymer. If you are learning a new platform i would suggest that dont learn AngularJs1( this was the first version and going away soon) and Backbone.
3) Unfortunately JavaScript is single threaded. even using WebWorker is not multi threaded. This might change in the future. 4) Use npm and bower to solve the version issue. if client modifys the code and mixes dependancy. this would become their issue. You should be clear on how to install and if they are going to mix , they should let you know in advanceed. 6) Backbone is still used but not many people choosing it for new apps. I think if you have a simple project you can still use it .
I am studying a course in JavaScript and they explained (call back function) but I was so confused after I was done, they made it seem so hard. Thank you for explaining, great JOB.
For a short video, it was actually quite full of informations. Clear and concise so i appreciated it. I watched it in 1.5 speed but it looked like it was at normal speed, so it's good, you obviously take the time to explain clearly and pronounce every word correctly. Thanks a lot for that because sometimes people talk really too fast or don't bother pronouncing anything the right way and you end up losing a lot of informations! Thumb up (y)
Glad it helped, I think its very important to understand callbacks in JavaScript, no one should move forward without properly understanding it. Thanks for watching .
Really u have explained very simply & smart way that anyone can catch it clearly and easily. Great job. Carry on and good luck for the next tutorials ;)
NOT ANYONE , I am the type person that does not understand ABSTRACT information and then can be expected to apply it to a real world situation. I have no idea what he was talking about and I have watch SO MANY JS videos I cant even count them. I understand HTML, CSS, PHP, SQL but I have yet to see a JS video where they apply it in a real world scenario all of this abstract language means nothing to me. ALTHOUGH, I am happy for you that it all makes sense. I just wish I could find a video that would TEACH JS in actual usage and not in abstract techno information.
Great example of callback. Thanks man! This tutorial made me understand callback functions. Finally a well explained video about callback functions. It's hard to find nowadays.
i have been following your tutorials from some time and really wanted say thank you for ths wonderful job. not all got the capability to make others understand in a simple and precise way. again thank you
Thank you! Good video. So callback is just a placeholder when I want to be able to pass a function in to another function, then it acts as the function itself once we inject it in to the other function where we can substitute callback "in our minds" with the name of the function we passed in the code logic. Yay! I think I got it now!
You're the best! I spent two nights trying to grasp this callback concept and ended up understanding little. You made my progress real. thick books aren't always good :(
Thanks heaps. Straight to the point, clear and easy to follow. Been struggling with the instructions given on codeacademy on this very topic. Thumbs up mate.
Very well explained. As a correction @0:08, they are not the same: higher-order functions are functions that take another function as an argument, that argument is the callback function.
Thank you for explaining the "Why we use it". This often isn't explained and it definitely helps with understanding. Well done!
Thanks so much for this.
Currently learning Javascript on Codecademy and was hell of confused at the "HIGHER-ORDER FUNCTIONS
, Functions as Parameters" section, but this clarified everything. I'm so grateful.
I've previously favoured interactive learning of CodeCademy and FreeCodeCamp, but you've made me now look at video tutorials in a new light
This is exactly what I needed to understand how callbacks work. I'm doing a node tutorial that has anonymous callbacks defined in-line and i had no idea why you would go out of your way to make a function more complicated by writing a function around it. This clears it up SO much
This is the best description of callback functions I've seen in all the internet. ...and believe me I've searched far and wide. Thanks for breaking this down for us!
Great example of callback, your calc function and callback really shows the reason for using callbacks.
Thank you, thank you, thank you.....I thought i'd never understand "callback" function, I've watched a few videos on this subject and could not grasp it and nearly gave up........but now......Thank you again.
Thanks for watching!
Most valuable 15 mins of my day. Thanks! (y)
Making it straight to the point. No BS.
Now I'm confident in using callbacks eventually forever. Thank you.
Thanks for watching Sridhar. I am glad that you will remember this forever, my job is done here. :)
This is the first video anyone and everyone should watch on this.
So many videos go SO deep and complex without covering the basics that its almost impossible to learn.
But you my friend.
Are the best.
Thanks Rick for the nice comment
I have been trying to understand callbacks all day on various blogs and other videos and this is the first time it is making a lot of sense. Great video and explanation.
Glad you got it. Thanks for watching
The only one to come up with a simple and straightforward example of callback functions. Thanks!
Best explanation I have found yet. You made callbacks very simple to understand. Thanks!
I love the way you correct the syntax errors but leave the word back spelled incorrectly. That's a true programmer haha
Have spent days trying to understand the "callback", finally got it after watching your video. A huge, huge thank!
Amazing, I had 3 hours of this on my class yesterday, couldn't understand a thing! Cristal clear after 15 mins of your tutorial, thanks a lot!
after 3 hrs tried to figure out callback function, I found this video and help me understand how and why to use callback. thank you Sir.
Sorting example was just awesome...I am almost following your channel for more than a year and get the job also as a node is developer...all credit goes to you 😄....now planning to learn data structures and algorithms... could you please help where I can start using JavaScript... because most of the examples are in Java or other languages...I want to do it practically.... thanks again I am earning bread for my family because of your channel :)
I have started a new channel for data structures and interview related questions. It's interviewnest feel free to check it out
You actually teach these concepts very well. My bootcamp does a horrible job of explaining these functional programming concepts.
Whenever I'm about to watch your video I know that by the end of it I'll understand the concept I couldn't wrap my head around.
Thank you, kind sir!
PS. Thanks for taking time to brush up on your accent. Normally it's quite difficult to understand everything when the speaker has a strong accent. Have a nice day, kind sir!
Extremely good teaching. Argument caught, no error thrown.
Thanks :)
been scratching my head trying to understand callbacks in java. thank you very much for such a nice relief!
I liked the point when u say y we r doing this. Many channels wont explain it. But the most imp point is y we r using a particular technique
Thanks for watching Rahul. I am glad that you learn something! :)
Excellent point man (y)
The way you introduced callback satisfies the Open&Close principle in SOLID.
The O stands for: Open for extensions but close for modification. We are able to extend function "calc" as much as we want, but should not modify it ;)
Love your tutorial!!!
Excellent point. Thanks for sharing! :)
Finally understood callback...after watching this video...thanks a Lot
The best explanation i have found so far. Really good thankyou so much!!!
You deserve a quieter place to live and thank you for the great content!
Jason , you noticed :) Since that video , i do have a semi private bit more quieter place. :)
Thanks for such an excellent video on callbacks. I've read a lot and been through a few videos trying to grasp callbacks and it hasn't clicked in my head until I came across your video.
Most important he explained when exactly it is useful! Thanks
Thank You , I ' am Understand callback function you are great
Glad to hear that Ragab.
Hey, thanks for this, it's a very easy to understand explanation, I appreciate it!
You're a hero! Thanks for this great tutorial!
Out of all of the videos on youtube, it's this one that gave me the eureka moment. I was very familiar with using callback functions in this way: someVar.addEventListener('click', () => {callback}) but creating a callback as a parameter for another named function really threw me off. Reall well explained. Thanks dude!
I've been struggling for many hours finally understand callbacks. Thanks sir.
one of the best explanations for callback function
Thanks for watching!
I'm a java developer with 5 years of experience in the technology and peripheral frameworks. I've recently started to mug into JS as our new requirements are all transitioning into it. As you can understand it's a new territory and the all these functions acting weirdly is mind numbing for a java guy. Thanks so much, your video helped me so much in understanding the core need for callbacks. Please make one on promises.
Thank you so much! I learn a lot. I see that you are not uploading videos, you must return and teach the next generation. You are a great teacher!
Thanks techsith! This definitely cleared up what it means to callback a function. Sir, You are AWESOME!
You are most welcome! When started learning JavaScript, callback function was so confusing. Once you know callbacks lot of thinks openup
Hi there! your videos are very easy to understand and are all briefly explained, thankyou for making these videos! also I think it would be useful for you to create videos talking about the classes, constructors, and extending them in es6 because they seem to be also something which is going to be helpful at times. :)
I am going to create a tutorial on classes next.
You are teaching many valueable javascript lessons in a easy way. Your free service is highly appreciated. We were really dummies before we look at your lessons.
Thank you! Do let me know if you want certain topics covered.
Recently interviewers have asked stunning questions which I didn't expect.
1) How do u handle cache
2) How do u handle offline when DB disconnected, still my application should survive with offline data downloaded previously, once DB is connected then it should handshake and continue as normal
3) Handling Threads in Javascript when server need more time to process and send results to the client
4) minification of js. Is it so important? Usually ignore that
5) Versioning management in javascript. Is it so important? Usually ignore that
6) Unit testing in javasciprt
Other than these broadly lot of client side frameworks need to learn. (AngularJS, Backbone JS, Ember JS, Node JS, Require JS, Polymer, Handlebar, etc).
All the really good topics.
1) Handling cache
You can do something like this in your html
scr="myJs.js?121212"
basically add a new number every time your deploy. There is a good solution using gulp . I will create a tutorial on that.
2) How to handle offline ( there are multiple solution to this. If you are using a JS platform you can use their technique. for exmaple if you are using ember.js you can use ember data. I will have to create a tutorial on that.
3) for handling the Threads in Javascript ( I have a tutorial on that th-cam.com/video/pMK-jcOAYI8/w-d-xo.html)
4) minification.js it is important depending on your application and number of users. Tell me the size of your application and number of people involved. there is a gulp solution which is very easy to implement)
5) Which versioning management are you referring to ?
6) Unit testing is very important, however this again depends on the size of your application . If you are using a javascript platform, versioning comes with it so you can use it there . I will make a tutorial on that.
I am going to start Angular2 and EmberJs tutorials really soon. Angular2 is the latest platform and a very important one. EmberJs would cover handlebar as well. I am also thinking about polymer. If you are learning a new platform i would suggest that dont learn AngularJs1( this was the first version and going away soon) and Backbone.
3) Unfortunately JavaScript is single threaded. even using WebWorker is not multi threaded. This might change in the future.
4) Use npm and bower to solve the version issue. if client modifys the code and mixes dependancy. this would become their issue. You should be clear on how to install and if they are going to mix , they should let you know in advanceed.
6) Backbone is still used but not many people choosing it for new apps. I think if you have a simple project you can still use it .
My confusion got cleared, more detailed, Thanks very Much
thanks for watching! :)
finally someone explained callbacks! thanks!
This was a simple and clear explanation! I finally understand callback functions. Thanks for making this!!
“just in case somebody pass a garbage”
😂😂😂
:)
@@Techsithtube hhhh you are funny as hell you and i really enjoy your tutorials
let garbage = function(trash) => {...};
my favorite statement in the video
I am studying a course in JavaScript and they explained (call back function) but I was so confused after I was done, they made it seem so hard. Thank you for explaining, great JOB.
For a short video, it was actually quite full of informations.
Clear and concise so i appreciated it.
I watched it in 1.5 speed but it looked like it was at normal speed, so it's good, you obviously take the time to explain clearly and pronounce every word correctly. Thanks a lot for that because sometimes people talk really too fast or don't bother pronouncing anything the right way and you end up losing a lot of informations!
Thumb up (y)
Glad it helped, I think its very important to understand callbacks in JavaScript, no one should move forward without properly understanding it. Thanks for watching .
Really u have explained very simply & smart way that anyone can catch it clearly and easily. Great job. Carry on and good luck for the next tutorials ;)
NOT ANYONE , I am the type person that does not understand ABSTRACT information and then can be expected to apply it to a real world situation. I have no idea what he was talking about and I have watch SO MANY JS videos I cant even count them. I understand HTML, CSS, PHP, SQL but I have yet to see a JS video where they apply it in a real world scenario all of this abstract language means nothing to me. ALTHOUGH, I am happy for you that it all makes sense. I just wish I could find a video that would TEACH JS in actual usage and not in abstract techno information.
after roaming months on youtube finally i found this 😊
I am glad you found it. Thanks for watching Ravish!
i am learning JS just from your tutorial and and you explanation is good God bless you Thank you
Awesome video. Liked. Commented. Subscribed 😀
Best explanation I've come across! Thank you
just loved the explanation, thank you sir.
Devendra, thanks for the comment! Keep on learning!
Thanks man! This tutorial made me understand callback functions. Great way to explain essence of this JavaScript part :)
I really like the way to teach stuff, its comprehensive and clear, thanks for taking time to make these videos.
Great example of callback. Thanks man! This tutorial made me understand callback functions. Finally
a well explained video about callback functions. It's hard to find nowadays.
You are really awesome. I just love the way you explain complex concepts.
just want to say it has been well delivered and well prepared.
your second example just made me realize callbacks are could be more. Keep it up
i have been following your tutorials from some time and really wanted say thank you for ths wonderful job. not all got the capability to make others understand in a simple and precise way. again thank you
Thank you! Good video. So callback is just a placeholder when I want to be able to pass a function in to another function, then it acts as the function itself once we inject it in to the other function where we can substitute callback "in our minds" with the name of the function we passed in the code logic. Yay! I think I got it now!
No
Nice, simple and to the point. Thanks!
The best video of callbacks I've ever seen
Thanks for watching!
Very clear in explanation. This is the first video I've watched from you but plan on watching a lot more!
Welcome Eric, let me know if you want me cover specific topic. Thanks for watching! :)
You're the best! I spent two nights trying to grasp this callback concept and ended up understanding little. You made my progress real. thick books aren't always good :(
Thanks, its really the best explanation for callback functions - i watched a few videos and didnt get it till yet
The clearest description ever :) thank u!
Thanks for watching! :)
amazing , i used callback functions but i couldn't explain to others , from now i will explain callback functions
Thank you! Finally a well explained video about callback functions. It's hard to find nowadays.
Super awesome, thank you!!! Subscribed!
Thanks for subscribing Miriam. :)
best explanation so far... thank you!
well explained!!! this tutorial clear talks about callback function!!!
Thank you so much, you gave such a clear and easy to follow explanation of callback functions.
Best explanation of callbacks ever
finally a great explanation with the WHY aspect!. Thank you Sir.!
your video has made call backs so simple for me!!! Thanks in tonnes ..
I am glad that you learnt Prerna. Thanks for watching! :)
Thanks for sharing. Callbacks have been driving me up the wall.
I am glad that it cleared up the concept of callbacks. :)
Thanks for clear explanation!
Glad it was helpful! Thanks for watching!
Good videos, Keep up the good job
Thank you, I now have a good understanding of callback functions
Thanks fr taking the timeout to make videos...
Best explanation I've found on callback functions! Thank you!
Thanks mate! Very good tutorial.
Techsith tutorial javascript it is helping me a lot Thank.
this examples make more sense for me cuz usually an=m not that gd with callbacks bt now am more comfortable with it thank you man
taught me something in 2020 ❤️❤️
Same
Dude. Never knew you can do that. Awesome. Keep it up. If no one likes it people like me would like it.👍🏼
Ramazan, I really appreciate the like , thank you!
Amazing Video, always helpful
Callback explained so well. Thank you!
this is such a life saver video! your video is so easy to understand! thank you so much!!!!
Thanks heaps. Straight to the point, clear and easy to follow. Been struggling with the instructions given on codeacademy on this very topic. Thumbs up mate.
THanks for watching Julian!
Awesome video full clarification about callback.
Thanks for watching Gautam!
Very well explained. As a correction @0:08, they are not the same: higher-order functions are functions that take another function as an argument, that argument is the callback function.
I really like the style that you explain those concepts! Helped a lot!!
Door knock @ 2:07...Seems somebody at home is not happy ;)
Twitch Style, lol :P
yes i too heard that
she didnt understod callbacks
his wife heard "callback" and she said "who the fuck are you calling he, your side bitch?"
ааааа ! Спасибо пасоны , угарнул ! )))
автору респект, хорошее ввод в колбэк функции.
what you have done in this video is really wonderful and useful .
i hope all the best for you dude , keep going , all the best
Thanks for watching :) keep learning!
Thanks for depicting everything so clearly. Helps me understand callbacks a lot
great video!!! very clear explanation of call back function :)
excellent video.. Makes it so simple
thank you, now i got the idea how call back works
this is the best video so far i watched
Thanks, Your explainations are very great