Create these basic functions:
function square(n) {
return n * n
}
function isEven(n) {
return n % 2 === 0
}
function max(a, b) {
return a > b ? a : b
}
console.log(square(5)) // 25
console.log(isEven(4)) // true
console.log(max(10, 20)) // 20
Notice how each function does one thing and returns a result.