/*
Function
- Anonymous Function
- Calling Named Function vs Anonymous Function
- Argument To Other Function
- Task Without Name
- SetTimeout
*/
let calculator = function (num1, num2) {
return num1 + num2;
};
console.log(calculator(10, 20));
function sayHello() {
console.log("Hello Osama");
}
document.getElementById("show").onclick = sayHello;
setTimeout(function elzero() {
console.log("Good");
}, 2000);
You have not completed all required lessons and assessments.