function printNumber(number) => {
console.log(number):
}
function scheduleTask(delay, number) {
setTimeout(function () {
printNumber(number)
}, delay * 1000);
}
scheduleTask(1, 1);
scheduleTask(3, 2);
scheduleTask(4, 3)
function printNumber(number) => {
console.log(number):
}
function scheduleTask(delay, number) {
setTimeout(function () {
printNumber(number)
}, delay * 1000);
}
scheduleTask(1, 1);
scheduleTask(3, 2);
scheduleTask(4, 3)