#83 JavaScript Bangla Tutorial | Callback Pattern | Asynchronous JavaScript - 3
ฝัง
- เผยแพร่เมื่อ 20 ก.ย. 2024
- In this video, I have described how to use JavaScript callback function pattern to handle asynchronous operations.
References:
👍 Asynchronous JavaScript Advanced Tutorial - lwsbd.link/asy...
কোন প্রশ্ন থাকলে comment section এ comment করতে পারেন। সেই সাথে আমাদের একটি Facebook Group আছে। সেখানেও আপনার প্রশ্ন করতে পারেন। সব প্রয়োজনীয় link নিচে দেয়া হলো -
👍 Facebook Group - / learnwithsumit
👍 Like our Facebook Page - / letslearnwithsumit
👍 Follow our GitHub Profile - github.com/lea...
👍 Follow us at Instagram - / learnwithsumit
👍 Follow me at - / sumit.analyzen
👍 Learn with Sumit Official VS Code Theme - lwsbd.link/vst
#learnwithsumit
After watching several videos on the Callback function, I finally came across your video which clarified everything about this function. I believe this tutorial is the best JavaScript tutorial created by a Bangladeshi.
Your tutorials have been an invaluable resource, sir. I want to extend my sincerest gratitude to you for taking the time to create them. Thank you for sharing your knowledge and expertise with us.
Take my love vai
এতো কঠিন একটি বিষয়কে আপনি একদম দুধভাত বানিয়ে দিলেন। আমার সৌভাগ্য , আমি আপনার টিউটোরিয়াল দিয়ে শুরু করেছি। অনেক অনেক ভালোবাসা জানবেন দাদা।
ভাইয়া আপনার এই ভিডিও গুলা দেখে আজ পরিপূর্ণ বুঝতে পারলাম জাভাস্ক্রিপ্ট এসিঙ্কোনাস আর সিঙ্কোনাস...ধন্যবাদ ভাই এত সুন্দর কন্টেন দেওয়ার জন্য।
এই প্যটার্ন টা বুঝতে আমার বেশ কয়েক দিন সময় লাগল.. আজ খুবই সহজ মনে হচ্ছে ..
us
Whenever I have to search anything on TH-cam about JS, I write the search term like "JavaScript Promises learn with Sumit". And the term becomes crystal clear when I hit the play button.
Can't thank you enough vaia 💜
Great example for callback function, i had ever seen.
take love from my deepest heart.
take love
first 12 mnt mathar upor diye gelo but porer time sheshe actually bujhte parlam what is call back function 😍
I am from india , i surf through many videos , but this where i completely understand the callback
Really awesome Explanation with perfect example, Thanks Bahia
Onek dhonnobad dada...apnar prothom je callback ,promise ,async await nia tutorial cilo oitar kichuta part bujha osompurno chilo.....akhon callback er ai tutorial ta dekhar por pora bepar ta clear holo.
just awesome... concept is clear. thanks
Great explanation brother. You made it super easy.
Best video of Callback Pattern ever.
mone hoy na callback niye basic knowledge r baki ache. Thanks!!!
jodi getCertificate a o perameter diya lage tahole okane o akta funtion body patate hobe same ager motoi ?
1st bar valo bujhi nai but porer bar a kapai dici tnx sumit vaiya for this great tutorial
Thanks a lot for this tutorial
"take user inputs by promt() method".....
const paymentSucess = true;
const marks = parseFloat(prompt("Enter your marks: "));
const jobqulify = parseFloat(prompt("Enter your qualify marks: "));
function enroll(callback){
console.log("course enrollment in progress...");
setTimeout(function(){
if(paymentSucess){
callback();
}
else{
console.log("payment failed");
}
}, 2000)
}
function progress(callback2){
console.log("course on progress...");
setTimeout(function(){
console.log("your certificate is preparing!!");
if(marks >= 80){
console.log("congrats!!! you got the certificate");
callback2();
}
else{
console.log("you are not eligible for certificate");
}
}, 3000)
}
function getCertificate(callback3){
setTimeout(function(){
console.log("waiting for the job result");
if(jobqulify >= 95){
callback3();
}
else{
console.log("you are not qualified for this job");
}
}, 2000)
}
function getJob(){
setTimeout(function(){
console.log("congrats! you got this job");
}, 1000)
}
enroll(function(){
progress(function(){
getCertificate(getJob)
})
});
Many many thanks from Kolkata. Best JavaScript tutorial in my native language. Earnest love from my heart
❤️
sotti vaia amara onek vaggonan .......apnar ai tutorial gola peye....valobasa niben vaia duwa tahakbe apnar r apnar familyr jonno
আলহামদুলিল্লাহ, সুন্দর প্রেসন্টেশন
Brillient Tutorial vai
Thanks for the detailed video Dada. Very informative💖 Watch Date: 08-01-2024
Your effort can't be describe in word
Take love bro
Great explanation.. Clear Concept..
Thank you Dada. It's become very easy for me now😊
তিনবার দেখার পর এখন ভালোভাবে বুঝতে পারলাম
Etu easy kore bujano r kutaw dekini...Thanks you so much form my core
Vai ektu different vabe korechi ... eaivabeu kora jai arki :
function enroll(callback, parameter) {
console.log("Course enrollment is in process.");
setTimeout(function () {
if (paymentSuccess) {
callback(parameter);
} else {
console.log("Payment failed!");
}
}, 2000)
}
function progress(callback) {
console.log("Course on progress...");
setTimeout(function () {
if (marks >= 80) {
callback();
} else {
console.log("You could not get enough marks to get the certificate!");
}
}, 3000)
}
function getCertificate(){
console.log("Preparing your certificate!");
setTimeout(function () {
console.log("Congrates! you got the certificate.");
}, 1000)
}
enroll(progress, getCertificate)
Many Many Thanks
আচ্ছা একটা প্রশ্ন যে
callback() সে কি synchronous function নাকি asynchronous?
যদি সে নিজেই asynchronous হয় তাহলে তাকে আবার কেন asynchronous function এর মধ্যে দেয়া লাগবে???
callback can be syncronous and aslo asynchronous. If the callback fn invock in the parent function then it's call syncronous callback. But if the callback fn call the parent fn in a sertain event than it's called asyncronous callback fn
successfully done sir
awesome real time example
Thank you so much
Thanks 🙂
ai kaj tar output dekhale vlo hoto!
acca vaiya jodi getSertificate e kuno paramiter dei tahole ki call korar somoy progress(getSertificate(para))
ebabe dibo nki
Thanks
এসিনক্রোনাস বিহেভিয়র জানতাম বাট এরকম কেউ সুন্দর করে এক্সপ্লেইন করতে দেখিনি
Vai eto sunodor kore kemna present koren, I am a fan of u!!!!!!!!
awesome dada
Nice
🥳🥳🥳
Thank you so much vaiya....Watch date: 8 aug, 2022
Thanks vai
Thank you
Tutorial No .83 - Watched
best
😍😍😍
24 aug, 22 + 25 aug, 22
It will be useful if we get the code written in this class
এতো ক্লিয়ার করে কেউই বুঝাতে পারে! জাভাস্ক্রিপ্টে রিয়াল লাইফে এপ্লিকেশন করার সময় সবচেয়ে বেশি ব্যাবহার করা একটা জিনিস কলব্যাক। আমি জানতাম এবং কাজ করি নিয়মিত তবুও মনে হচ্ছে অনেকে কিছু জানলাম।
এত সময় নিয়ে ভেঙে ভেঙে বুঝানো কনটেন্ট খুবই দুষ্কর..!
thanks