You forgot the return statement in your code, it’s necessary when you use { } to wrap your function! in this case it’s an expression so you can write it in one line without { }
const half = ({ max, min }) =>{ return (max + min)/ 2.0 };
// will work, you are returning a value generated by an a expression in a block of code
const half = ({ max, min }) =>{ (max + min)/ 2.0};
// function is returning 'undefined' which means that the execution has finished because you don't specify what to return, but undefined != 28.015 !
const half = ({ max, min }) => (max + min)/ 2.0 ;
// if you don't use {} on inline functions the return statement is implicit, but ONLY on inline functions with expressions. This will return a value.