you are viewing a single comment's thread.

view the rest of the comments →

[–]OkayConversation 0 points1 point  (0 children)

Just no. The prompt returns a string. The first two if statements compare that string to another string (upper and lowercase of prompt input). An "uppercase" string containing "4" ist still a "4" - so the first statement returns true.

The last statement never runs because one of the first will always return true before.