first part sums two numbers, second part checks whether the sum of the numbers is odd or even and the final part prints out the message but in this case it prints out 8 instead of even
let sum = (a, b) => {
return a + b};
let evaluate = (c) => {
if (c % 2 == 0) {
console.log("Even")
} else {
console.log("odd")
}
return c;
};
let Hello = (name, status) => {
let message = `Hi I am ${name} , and the number is ${status}`;
return message;
};
console.log( Hello("David", evaluate(sum(5, 3))));