Functions practise. help needed

I’m trying to get assessment on my functions test. This is as far as I got:

Thanks in advance.


Hello @Juan_Salerno

you doing great it was just tiny miss type in this line
replace lenght with length

we all get cought by those error

when something did not work like that try to use console.log() toprint the value of the variable to see if it has the right value or not

hope that help and have a nice day