파라메터로 받은 num 변수를 우선적으로 Number(num) 으로 씌워주는 것이 답이다.
function calculate(num) {
//return (num + 10) / 3;
//return Number( (num +10) / 3 );
return (Number(num) + 10) / 3;
}
let x = calculate(8);
console.log(x);
https://onecompiler.com/javascript/3ynjjedmp