why is the call back function not working?
can someone explain it to me.
function addObj(callback){
setTimeout( () => console.log("Object has been added."), 5000);
callback();
}
function getObj(){
setTimeout( () => console.log("Object has been fetched."), 3000);
}
addObj(getObj);