5. Give an example to input an integer
number by using function arguement
PLEASE EXPLAIN ALSO, CORRECTLY THAT HOW THIS EXAMPLE CAN BE....
Answers
Answered by
0
Answer:
//JavaScrit Programming Language demo
const isNumEven = n => {
return n % 2 == 0;
}
let printMsg = (evenFun , num)=> {
isEven = evenFun(num);
console.log ('number is even ');
}
printMsg(isNumEven,4);
Explanation:
This done using higher order function
i.e., we making function as parameter to other function .
Similar questions