Learning js functions, Any help is appreciated, regarding why my function is not being executed

I have done the changes said by @mikoMK, added a little code to that function, but unable to figure out where and what the error is.
Here is the link:

See my answer to your other topic. Let’s focus there to find a solution.