Advanced JavaScript Tutorial in Hindi [Part 94] - JavaScript Callback Function

preview_player
Показать описание
#Javascript #Tutorial #Hindi

In this video i will talk about JavaScript callback function.

A function is a block of code that performs a certain task when called.

A callback function is a function passed into another function as an argument, which is then invoked inside the outer function to complete some kind of routine or action.

Why do we need Callback Functions?

JavaScript runs code sequentially in top-down order. However, there are some cases that code runs (or must run) after something else happens and also not sequentially. This is called asynchronous programming.

Callbacks make sure that a function is not going to run before a task is completed but will run right after the task has completed. It helps us develop asynchronous JavaScript code and keeps us safe from problems and errors.

In JavaScript, the way to create a callback function is to pass it as a parameter to another function, and then to call it back right after something has happened or some task is completed. Let’s see how…

Рекомендации по теме
Комментарии
Автор

Superb explanation i saw many vids or material but no one gave so deep explanation in easiest way which Tech Gun did easily in 10 mins

jaideepsarkar
Автор

On my side, I had to write add ( a, b, sayHello() ); to display the "Hello", Great work Tech Gun.

Loads of Love. 🤩🤩

CodeAndCookWithUsama
Автор

Dear sir,
You are great !
Teaching technic is amazing!
Conception is clear to me after long days.
Thank you so much!!!

tusharsamanta
Автор

Simple and Short...Other videos were so confusing, but you explained in such a way that it was clear and cut...thank you..! Keep on the great work....!

safeerahmad
Автор

I watched many video tutorials of callback but I didn't understand it but after watching your video I understood it. You explained it very well.❤❤

zakariahossain
Автор

WOW your explanation of the call back Function was fantastic and easy to understand

webdevtech
Автор

welcome back sir after a long time plz sir complete the adv js

rupeshshirsat
Автор

Literally the easiest explaination on YouTube

vladimirputin
Автор

Sir bhat video dekhe hum YouTube pe callback function
But aapka videos dekh ke pura clear ho gaya

Status_King
Автор

Sir aapki video bahut hi badhiya he ..easy to understand you are god for me

MrKiranKumar
Автор

Clear and to the point.. 10/10
Thank you so much. :-)

SunilSharma-zkzq
Автор

thanks sir mere liye ye most difficult topic tha jo mujhe smjh ni aa rha tha ❤

ankitkumar-zwcb
Автор

great explanation, I was not understanding why we will use callback .after watching this video now it's clear.
Thnx @TechGun

_schemaki_
Автор

Excellently explained... thank you Sir!

QuickSolution
Автор

THANK YOU THANKS A LOT. Your explanation is way better for me compared to other resources available on internet.

_dikshasakhare
Автор

Thanku you sir..Understood it very easily :)

Anonymousdoper
Автор

great teaching skills i was confused in callback

shaheeriqbal
Автор

it was so difficult for me initially.. Thank u so much sir

rishikathakur
Автор

Bro seriously! I wanted a revision on this callback and when i checked other videos it was quite confusing. But, you explained in such a way that, no possibility of forgetting the concept . Thanks Bro🙂. Kindly make react.js videos (if possible).

The_Hunter_
Автор

Sir pls upload videos on async, promise,

learnWithSsaurabh