Practice using callbacks:
function process(value, operation) {
return operation(value)
}
console.log(process(5, x => x * 2)) // 10
console.log(process(5, x => x + 10)) // 15
console.log(process(5, x => x ** 2)) // 25
let numbers = [1, 2, 3]
let results = numbers.map(n => process(n, x => x * 3))
console.log(results) // [3, 6, 9]
See how the same function produces different results with different callbacks.