কলব্যাক ফাংশন (callback function)
function servent(office_ip, ip, current_location, office_location, work){
if(ip===office_ip && current_location===office_location){
console.log(`you are authorized to work: ${work}`)
}
else{
console.log(`you are not authorized to work: ${work}`)
}
}
function Office(worker){
const office_ip = "198.168.1.1"
const ip="198.168.1.1"
const current_location = "Dhaka"
const office_location="Dhaka"
const work = "Print file"
worker(office_ip, ip, current_location, office_location, work)
}
Office(servent)কলব্যাক হেল ইনভার্সন অফ কন্ট্রোল কি?
কলব্যাক ফাংশনের সমস্যা।
Last updated