Functions


#1

Can someone else to me, why i have this message error but my code seems to work.


#2

Your function doesn't return anything. How do you return from a function?


#3

This error message is kind of misleading because the exercise does not mention to return but to console.log the value.
Btw both works console.log in the function and return -> console.log outside of it.

The actual problem is that the output is expected to be a number and not a string concatenated with a number.