Assessment wanted for conditional test 2 ( Js)

I am not quite sure what is wrong here.is it ok or my head is not working for not sleeping and learning and coding for straight 24hrs?
here is the link: Little Js (codepen.io)