const plus3 = x => x + 3
const double = x => x * 2
const minus5 = x => x - 5
const starting5 = [plus3, double, minus5].reduce( (value, nextFunction) => nextFunction(value), 5)
console.log(starting5)
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX