getEmployeeId(getEmployeeSalary)
const getUser = (callback) => {
setTimeout(() => {
let userId = 1;
callback(userId)
}, 500);
}
const getUserComment = (userId, callback) => {
setTimeout(() => {
console.log(`${userId}'ye göre apiden veri çekerek bu kullanıcının commentini bulduk`)
let userComment = "publish this comment"
callback(userComment)
}, 600);
}
const publishComment = (userComment, callback) => {
setTimeout(() => {
console.log(`userId'ye göre apiden veri çekerek bu kullanıcının commenti olan ${userComment} bulduk ve bazı işlemler yaptık burda`)
let isApproved = true;
callback(isApproved)
}, 700);
}