Callbacks in JavaScript Explained!

  Рет қаралды 149,507

Code with Ania Kubów

Code with Ania Kubów

3 жыл бұрын

Video Sponsors: getstream.io/aniakubow . Stream is a maker of enterprise-grade developer tools that help product and engineering teams solve two common problems at scale: in-app chat, and social activity feeds.
Callbacks in JavaScript Explained!
In this video I explain what Callback functions are with the help of a simple example, and a more complicated one.
___
⭐ New to code and none of this is making sense? Watch my '12hr+ KZfaq Coding Bootcamp' in which you will learn HTML, CSS and JavaScript Fundamentals completely from scratch. It's on my channel and its 100% free.
⭐ In most videos I use Tabnine as my A.I autocompletion tool. You can download it for free here: bit.ly/tabnine-top-tool
⭐ You can get a blockchain domain with my affiliate link here: bit.ly/get-a-crypto-domain
⭐ If you would like to buy me a coffee, well thank you very much that is mega kind! : www.buymeacoffee.com/aniakubow
⭐ Sign up for weekly coding tips from my newsletter partnership: bit.ly/JS-tips
You can also find me on:
Twitter: / ania_kubow
Instagram: / aniakubow
#codingbootcamp​ #coding

Пікірлер: 317
@johnnyvcrow
@johnnyvcrow 2 жыл бұрын
At 5:20 my mind exploded... I've watched so many tutorials trying to grasp this concept. I can't believe it's really so simple. Why do so many teachers overcomplicate this subject? You are a really great teacher. Thanks!
@aniakubow
@aniakubow 2 жыл бұрын
Oh wow thank you so much Stark! That is so nice of you to say!😍
@afsharanh
@afsharanh 2 жыл бұрын
felt the same impression
@dr_corrupt1014
@dr_corrupt1014 Жыл бұрын
@@aniakubow very helpful video babes 😘
@aniakubow
@aniakubow Жыл бұрын
@@dr_corrupt1014 thank youuuuu
@djbone94
@djbone94 Жыл бұрын
@@aniakubow Exactly the same thing. First time i REALLY understand a callback with what you said in 5.20 as well. That was what i did'nt understand, 3 differentes method of doing a callback ! i understand callback after 1 year of learning javascript 😆 thanks you !
@maddamon1683
@maddamon1683 2 жыл бұрын
You are one of the very few teachers who explains upfront what should be achieved and not only how but WHY something is done. And in addition to that your examples are on point without detours from the actual matter focusing on details which are not needed at the moment. Thanks so much and keep up the good work :-)
@maxwarren4277
@maxwarren4277 2 жыл бұрын
Best videos on youtube. The fact that you slow things down and thoroughly explain them is immensely helpful. Most people just code things out without breaking things down to their core concepts. THANK YOU!
@lowwastehighmelanin
@lowwastehighmelanin 2 жыл бұрын
This is honestly so helpful and clear, I really appreciate your visual examples and the simple, slow pace you take with explaining this as well as the reemphasis at the end
@desarrollojava
@desarrollojava 2 жыл бұрын
I have never saw a video with a clear, concise, precise and useful explanation about callbacks. Thank you teacher.
@dominik1023
@dominik1023 2 жыл бұрын
There are MANY great js experts, and there are just as many great teachers. But it's a rare thing to find a person able to do both so well. Thank you Ania!
@afretoon
@afretoon 2 жыл бұрын
You've did it again, great explanation straight to the point, amazing as always👌💯
@kalonacharjee1729
@kalonacharjee1729 2 жыл бұрын
wow, just incredible, never saw anyone teaching such complicated concept so perfectly
@ishaankulkarni49
@ishaankulkarni49 2 жыл бұрын
Literally the best explanation out there. I like how you not just taught the concept but also told us how you visualize it. 🔥🔥
@lycorice2219
@lycorice2219 2 жыл бұрын
This is such an amazing explanation! Not only did you explain callback, you also showed different ways that it can be created. Thank you soooo much!!!
@rahsalghul
@rahsalghul Жыл бұрын
absolute legend. not only is it explained well but you keep it interesting too. you've done it again Ania
@prabhakaranjeyamohan4579
@prabhakaranjeyamohan4579 2 жыл бұрын
This is the best explanation I can find on callbacks. I liked the pace and you took the time to explain it. Thank you
@kevinadrian2640
@kevinadrian2640 2 жыл бұрын
You're right ! I watched several tutorials and no one explained really the difference in the syntax! Finally i understand using callback function. Thank you
@Augustein
@Augustein 2 жыл бұрын
very well explained. I have seen a lot of tutorials on this and couldn't grasp the concept. Big thanks to you. Perhaps you should do a full JavaScript course.
@astrodas1910
@astrodas1910 2 жыл бұрын
I've checked some resources for callbacks but now watch your video, it's all clear. Thank you for great tutorials !
@edberaga
@edberaga Жыл бұрын
it's much easier to understand when you teach about it! love your content! you are my best programming teacher!
@KresimirKatusic
@KresimirKatusic 2 жыл бұрын
Very simply explained, Anna just kept going 👍
@rafalp.5485
@rafalp.5485 Жыл бұрын
I've been struggling with callbacks to this moment. I am happy I've found this channel. Thank you Ania.
@Srishti9015
@Srishti9015 Жыл бұрын
This was an amazing video, i have been programming for a while now without fully understanding this concept but you drilled it down so perfectly. Thank you so much!! Go girl!! Off to check out the rest of your videos 😊
@devmarboy4045
@devmarboy4045 Жыл бұрын
thank you so much i was really struggling with callbacks and no other tutorial has had this much detail.
@TechnicalTony.
@TechnicalTony. 2 жыл бұрын
This was explained perfectly! You really know what parts that can be tricky to understand, and you put a lot of focus there. Great! 🙏🔥
@mithi9
@mithi9 2 жыл бұрын
Wow you made it so easy to understand. I was reading so many online tutorials and was still left confused. THX!
@jaggyjut
@jaggyjut 2 жыл бұрын
Wish everyone taught the same way. Thank you for creating this tutorial.
@aniakubow
@aniakubow 2 жыл бұрын
You are so welcome! Thanks for watching Jagjit!
@liflorence362
@liflorence362 2 жыл бұрын
Thank you so much! The way you visualized the train of thought/evolution is amazingly helpful!
@adarshtiwari7395
@adarshtiwari7395 2 жыл бұрын
Hey Ania this was the first video of yours that I watched and you did a great job explaining callbacks! Thank you
@k.iskandar
@k.iskandar Жыл бұрын
This cleared up a lot of my confusion relating to callback functions and higher order functions. Thanks 👍🏽👍🏽
@aocchan
@aocchan 11 ай бұрын
Thank you, I tried other tutorials but never really understood much, yours however was clear and easy to follow.
@NedumEze
@NedumEze 2 жыл бұрын
Haven't seen this before. Callback in Callback.... speaks work for me. Thanks Anio.
@shaidyn8278
@shaidyn8278 Жыл бұрын
Good gravy, you did it. You made arrow functions make sense. I've watched a half dozen tutorials and it was like water through a sieve. => just replaces 'function' and gets shifted forward. It's that simple.
@vivekjoshi3769
@vivekjoshi3769 2 жыл бұрын
Hey I know you from Twitter. Glad to know you teaching on KZfaq & helping millions. Seems you recently started KZfaq Channel. Full support! You are an inspiration!
@elliotlassey3118
@elliotlassey3118 2 жыл бұрын
Oh my God. This is one of the best videos I have watched. You are such a good teacher, I can't even believe it. Thank you so much 💓💗
@AmeerulIslam
@AmeerulIslam 2 жыл бұрын
I can't believe you have cleared a lot of concepts of mine.. Thanks Ania!
@adrienneparks9791
@adrienneparks9791 2 жыл бұрын
You are so clear and easy to understand. Great presentation. Thank you!
@jlpatriot91
@jlpatriot91 2 жыл бұрын
Thank you for this video lecture. It really helped me get a better grasp of callbacks. I appreciate it!
@mostafahamdy445
@mostafahamdy445 2 жыл бұрын
WoooW Wish everyone taught the same way, And watch the ad until the end because you deserve it Greetings from Egypt💙
@rubenuijtde
@rubenuijtde 3 жыл бұрын
I usually prefer project videos, but from you anything is okay, this video proves. Amazing!! 😁
@BMikel
@BMikel 3 жыл бұрын
precise and straightforward explanation. I like your tutorials very much
@deqnski890able
@deqnski890able 2 жыл бұрын
Thank you, you made it so interesting and easy to comprehend with this slowly incremental approach!
@NsRider980
@NsRider980 Жыл бұрын
i've been searching for this now i got exactly what i need to be understand..Beauty with brain Ania I love U and i love watching ur videos keen helping me and others too
@3y3sw1deopen
@3y3sw1deopen Жыл бұрын
I have a Google interview in 3 days and I'm watching this for preparing. You example is really really helpful!!!
@viorelmnk
@viorelmnk 2 жыл бұрын
I have to be honest and say I had almost no expectations of understanding from you what I didn't from others about callback functions. And you know what? I was amazed of how easy you've made it look, and I really understood them! It was one of those moments you raise your eyebrow and say: "wait a minute! Ahaa! "Well done! You've caught my attention, starting today! :D
@sahracton8744
@sahracton8744 Жыл бұрын
5 years later of Js programming, I finally get what a call back is! Thank you :)
@sophiagigliotti707
@sophiagigliotti707 2 жыл бұрын
Thank you so much Ania! I have struggled with this concept for so long, but your explanation really helped clarify :)
@aniakubow
@aniakubow 2 жыл бұрын
Thanks for watching Sophia!
@nhatpham3393
@nhatpham3393 Жыл бұрын
after videos and videos, I have finally got explanations that make sense to me. Thank you very much. It was really helpful the way you put it.
@viveknayak
@viveknayak 3 жыл бұрын
This video has helped me understand callback, thank you
@hassanabs9653
@hassanabs9653 3 жыл бұрын
li shukrana Thank you very much for this great content. A month ago, I did not understand anything about programming, but thanks to you, your simple explanation of the codes became clear to me. Thank you ♥️♥️♥️♥️
@aniakubow
@aniakubow 3 жыл бұрын
Thank you so much Hassan!!!
@mitchtembo487
@mitchtembo487 2 жыл бұрын
Awesome tutorial. Love your teaching style you really make it easy to learn .
@gouderhicham3696
@gouderhicham3696 3 жыл бұрын
that's what we needed thank you so much ania❤️
@sidequestuk
@sidequestuk 2 жыл бұрын
Thanks for this I struggled with this but it’s actually super simple. I think it’s the names and wording.
@nayyyhaa
@nayyyhaa 3 жыл бұрын
That was an awesome explanation, Ania! Really got a good grasp of the callback function concept. Thanks! 😁
@aniakubow
@aniakubow 2 жыл бұрын
Thank you so much Neha!
@amonraii7273
@amonraii7273 2 жыл бұрын
I'm usually very stingy with my subscribes, but I think your channel is worth it
@mishalzeera8172
@mishalzeera8172 2 жыл бұрын
Super cool, thanks. I didn't exactly understand it properly but it did something in my head, which I recognize as a sign that soon I will understand. My experience of learning Javascript in a nutshell.
@Oxmodius19
@Oxmodius19 Жыл бұрын
I couldn't find any reason online why you wouldn't use the '()' when calling a function in a callback at 5:00! Thank you so much!
@alec3979
@alec3979 2 жыл бұрын
Thank you for your time and effort in making this video and explaining this information! Priceless!
@mahmodsamir5110
@mahmodsamir5110 7 ай бұрын
Straight to the point, really helpful and simple Thank u very much ❤
@elikent78
@elikent78 7 ай бұрын
thank you!!!! for the first time I'm starting to understand this concept
@koorosh13hm
@koorosh13hm 2 жыл бұрын
Had never been explained to me like so. Thank you Ania.
@zhaungsont326
@zhaungsont326 Жыл бұрын
This is clear, informative, and easy to understand. Thank you very much!
@anouarelmaaroufi4030
@anouarelmaaroufi4030 2 жыл бұрын
a really good tutorial about Callbacks, simple and to the point. Thank you
@fernandonugf6229
@fernandonugf6229 2 жыл бұрын
I finally found a complete explanation. Wonderful explanation. wonderful woman.
@frederickgivens9261
@frederickgivens9261 2 жыл бұрын
your style is so good. I turned your snek game into a golden rectangle generative art thing
@gerhardat7244
@gerhardat7244 3 жыл бұрын
Amazing! Finally I understand callbacks. Thank you so much.
@aniakubow
@aniakubow 2 жыл бұрын
Great to hear!
@mikedumais2219
@mikedumais2219 3 жыл бұрын
Another Wonderful tutorial. Thanks for tweaking my js-mindset again!
@ichiroutakashima4503
@ichiroutakashima4503 Жыл бұрын
The comments are damn true. Most tutorials have complicated examples my brain always explode before the end of their videos, yours however, paints a different story. Thank you.
@ammarahmedkhan2416
@ammarahmedkhan2416 7 ай бұрын
That was mind-blowing. You explained it so well. Thank you❤❤
@nguyennghialan
@nguyennghialan 11 ай бұрын
The best part is using arrow function to make a callback with input parameter. I understood. Thanks,
@fazzyakamello
@fazzyakamello 2 жыл бұрын
I agreed with most of the comments here - Ania explained it really well. I always wondered at the back of my mind what is the difference between toggle and toggle()….
@aniakubow
@aniakubow 2 жыл бұрын
Thanks so much Fazzy!!!
@monasiri1
@monasiri1 Жыл бұрын
One of the best explanation out there, you've made it very easy, THANK YOU
@aniakubow
@aniakubow Жыл бұрын
So glad to hear :)
@teclyt_solutions3839
@teclyt_solutions3839 10 ай бұрын
This has really helped me and the content is much easier to understand. Thanks a lot.
@govinda399
@govinda399 2 жыл бұрын
omg!!! It was the best explanation. Only after failing in the interview, I got this you Tube.
@eddasjbertrand
@eddasjbertrand 2 жыл бұрын
OMG I was struggling hard to understand this. Your explanation was very didactic. Thank you very much!!! Subscribed
@szymonrojek6480
@szymonrojek6480 2 жыл бұрын
great explanation! thx :D anyway, callback - it is not very easy topic and it will take some time to have a good understanding. Generally, we have to just open the vsc and do lots of different exercises - simple and more complicated const multiply = (a, b) => a * b; const calc = (a, b, callback) => { return callback(a, b); }; console.log(calc(1, 2, multiply));
@jackdanksterdawson112
@jackdanksterdawson112 Жыл бұрын
Holy shit I've been searching for a video that can explain callbacks and async functions visually and in detail and I just hit the jackpot. I was struggling to learn these but you just did it for me in 10 mins... next m gonna watch your Async series coz I just know it's gonna be amazing. Thanks, Ania you are amazing! ♥
@brainlesstechie5490
@brainlesstechie5490 Жыл бұрын
Wow.... thanks i struggled with this for min, i think seeing its practical application really helped. Tx
@dironin2363
@dironin2363 3 жыл бұрын
Thanks, Ania! Very helpful!
@nadsmarcelo8863
@nadsmarcelo8863 2 жыл бұрын
The best explanation regarding this callback function!
@Hariharan0606
@Hariharan0606 4 ай бұрын
I never knew this before! Thank you so much
@RogerontheKeys
@RogerontheKeys 5 ай бұрын
thank you, i feel like i'm at a better spot then i was 10mins ago learning about callbacks for the first time.
@ManiasInc
@ManiasInc Жыл бұрын
Thanks for the explanation!!! It was very clear and useful for me!! finally, callback explained in the easy way 👏👏🎉🎉 Thanks a lot!!🙏💖
@DevlogBill
@DevlogBill 2 жыл бұрын
Could you make a video tutorial on call backs and on promises? Your a pretty good teacher and I think I would learn so much from you these lessons.
@trtlphnx
@trtlphnx 3 жыл бұрын
Another one Hit Out of The Park, Sweetie; Yu Teach me so Much, Love Your work ~
@ScottUmphrey
@ScottUmphrey 6 ай бұрын
A very good tutorial on callbacks. Keep up the good work.
@kathiateran5826
@kathiateran5826 2 жыл бұрын
Thank you! You're really good at explaining functionality in detail!! :D
@aniakubow
@aniakubow 2 жыл бұрын
Thanks so much for watching Kathia!
@practical-skills-school
@practical-skills-school Жыл бұрын
Thanks a lot, this parenthesis trick explains perfectly
@ella6782
@ella6782 4 ай бұрын
Wow. Really understood what you taught.❤❤❤❤
@RuiMSilva
@RuiMSilva 2 жыл бұрын
Anya, thank you for this great video! Best way to explain this that I've com across I think :) As a PHP developer who loathes JS ( :P don't hate me ) but inherently has to handle with it more often than I wish, at work for my ongoing projects, this actually was very useful to me! :D Callbacks and event handling have always been a figure-out-at-need basis challenge :)
@peterwan1808
@peterwan1808 Жыл бұрын
Thank you for this tutorial, I learned a lot!
@germansilva7947
@germansilva7947 11 ай бұрын
omg i cant believe this was getting me so confused. Big thanks!!
@wiliam334
@wiliam334 4 ай бұрын
Thanks for the video. Very helpful.
@jackcollazo
@jackcollazo Жыл бұрын
Hmm! This is interesting. That explanation of the toggle parameter was quite an eye-opener. I've just subscribed and I'm going to look more into this soon cause this was a good tutorial. I've been wanting to learn JavaScript but with my low IQ I wasn't able to get a clear understanding from any other teacher in KZfaq. I got the html and CSS part, even built a bootstrap website, but I sure would like to learn JavaScript. You are really an impressive teacher! Thank you!
@Coding1on1
@Coding1on1 9 ай бұрын
You are a great teacher, thank you.
@LatinoWebStudio
@LatinoWebStudio 2 жыл бұрын
That was a great explanation. Thank you so much!
@norrismwiinga4145
@norrismwiinga4145 2 жыл бұрын
Very well explained thank you so much!
@Stereotica
@Stereotica Жыл бұрын
Amazing explanation, thank you very much. ❤❤❤❤
@THE-Nerd09
@THE-Nerd09 3 ай бұрын
❤now i understand the js you explain very nice
@jaredsancheznieto
@jaredsancheznieto 2 жыл бұрын
That was a great explanation of callback. You are awesome 👏
@aniakubow
@aniakubow 2 жыл бұрын
Thanks so much Jared!
@deltaforce3329
@deltaforce3329 3 жыл бұрын
Thank you !! I will Always support you !!
@SanteeRocks
@SanteeRocks 2 жыл бұрын
Jesus this is so cool, Beauty and Brains for sure Ania !! just wondering how to do this in python though
@OUTSS1
@OUTSS1 3 ай бұрын
such a good teacher!
@philipmwangi5270
@philipmwangi5270 3 жыл бұрын
Ania, could you please do a series on interview questions.
Async JavaScript & Callback Functions -- Tutorial for Beginners
24:21
Async JavaScript Part 1: What is AJAX?
21:25
Code with Ania Kubów
Рет қаралды 115 М.
어른의 힘으로만 할 수 있는 버블티 마시는법
00:15
진영민yeongmin
Рет қаралды 10 МЛН
Why You Should Always Help Others ❤️
00:40
Alan Chikin Chow
Рет қаралды 6 МЛН
Learn JavaScript Event Listeners In 18 Minutes
18:03
Web Dev Simplified
Рет қаралды 564 М.
Learn JavaScript CALLBACKS in 7 minutes! 🤙
7:17
Bro Code
Рет қаралды 31 М.
JavaScript ES6 Arrow Functions Tutorial
9:32
Web Dev Simplified
Рет қаралды 812 М.
Why Does Scrum Make Programmers HATE Coding?
16:14
Thriving Technologist
Рет қаралды 488 М.
JavaScript Higher Order Functions & Arrays
34:56
Traversy Media
Рет қаралды 977 М.
JavaScript Analog Clock (Super Simple!!!)
22:17
Code with Ania Kubów
Рет қаралды 4,9 М.
Why Isn't Functional Programming the Norm? - Richard Feldman
46:09
어른의 힘으로만 할 수 있는 버블티 마시는법
00:15
진영민yeongmin
Рет қаралды 10 МЛН