Комментарии:
Thanks for the video, i just want to say one thing; you said setTimeout takes ( firstAction, 5000) as parameters, but those would be arguments.
Ответитьgreat explain ania thanks
Ответитьlove
Ответить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.
ОтветитьI love you my JS Teacher ❤❤❤❤
Ответитьthanks ! this explanation is wonderfull and helpful !!!
ОтветитьYou tried hard to explain but it's so complicated for the beginners
Ответить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 😊
ОтветитьHow in the world you made it so easy for us? It actually feels illegal to watch this video lol.
I watched a lot of tutorial but this is the best and has the best explanation.
Thank you, I tried other tutorials but never really understood much, yours however was clear and easy to follow.
Ответитьomg i cant believe this was getting me so confused. Big thanks!!
ОтветитьThere is one more thing, you need not necessarily pass a callback method's parameter with ()=>
You can just mention the 'method name' in the calling method's parameter list as usual, then within the body of calling method you can call the callback method passing another parameter of the calling method.
For eg:
function first(callback, message) {
console.log(message);
setTimeout(() => callback(message), 3000);
}
function second(radio) {
console.log(`This is ${radio} FM!`);
}
first(second, "Fever 105");
This drove me nuts while understanding below example as to why the parameter was not passed initially:
function asyncForEach(array, cb) {
array.forEach((el) => {
setTimeout(() => cb(el), 3000);
});
}
asyncForEach([1, 2, 3, 4], function (i) {
console.log(`This is me: ${i}`);
});
Hope this helps someone.
The best part is using arrow function to make a callback with input parameter. I understood. Thanks,
ОтветитьExcellent explanation.
ОтветитьThis has really helped me and the content is much easier to understand. Thanks a lot.
ОтветитьComing from game programming in C++ I don't get this at all - I'll guess I'll have to play with this for a while. I am used to all functions having names and calling them as I need to. Not this eosoteric system of functions being anonymous by the sounds of it. Oh well, thanks for trying to explain it, it looks like others found it useful.
ОтветитьYou are a great teacher, thank you.
ОтветитьI tried, but I cant understand
ОтветитьI can't even lie, I'm confused as hell after watching this. Sometimes it'll take me some time to grasp a subject, but damn, I just couldn't get her explanations. I don't know how I can say that her explanations were complex, but they were to me. I'll have to find another video.
Ответить❤
ОтветитьThank you coding Targaryen
Ответитьtough
ОтветитьThat was mind-blowing. You explained it so well. Thank you❤❤
ОтветитьStraight to the point, really helpful and simple
Thank u very much ❤
thank you!!!! for the first time I'm starting to understand this concept
ОтветитьI have watched coupled of times and I still find it difficult to comprehend
ОтветитьCouldn't grasp the concept of callback functions until I found your video. Thank you very much! You helped me understand it
Ответитьmy first video and you owned me
ОтветитьA very good tutorial on callbacks. Keep up the good work.
ОтветитьJavascript the love and hate relationship
Ответитьthank you, i feel like i'm at a better spot then i was 10mins ago learning about callbacks for the first time.
ОтветитьYou are amazing!❤
ОтветитьI never knew this before! Thank you so much
ОтветитьThanks for the video. Very helpful.
ОтветитьWow. Really understood what you taught.❤❤❤❤
ОтветитьI don’t know why this seems so hard to grasp to me. I’ve been trying all morning
Ответитьsuch a good teacher!
Ответить+1 sub
Ответить❤now i understand the js
you explain very nice
deneryes targeryan is here...
ОтветитьMy question to you is how you can genuinely love to code everyday? I just love the vibe of the video from intro to the point you start coding. The moment it starts to show up scary lines of code with multi colours on a black screen oh my heart just starts beating fast and i start to feel anxious and nervous. How can you be ok with liking this dark screen of code? How can one love that? Eventually one needs to love that dark screen first then the exciting gaming part later😢😢😢😢
ОтветитьQuestion: a callback function works only if the function has no parameters? E.g. "toggle('aString')" does no longer work as a callback function? Thanks for your answerz 😀
ОтветитьThank you :)
ОтветитьThank you, this was very helpful
ОтветитьLovely explanation, thank you Ania you made my day...
Ответитьvery confusing.
Ответитьtime to practice
Ответить