The checktemp function will run because it is called before it is defined. In JavaScript, function declarations are hoisted to the top of the scope, so the function will be available when it is called.
Entering 98.7 will result in the statement 'You have a fever', not 'You have no fever'. The condition temp > 98.7 is true for 98.7, so the first part of the ternary operator will be executed.
Tamar
1 months agoLeonor
16 days agoSean
27 days agoKimbery
1 months agoAudry
1 months agoIsaac
9 days agoCatarina
19 days agoDesirae
22 days agoMirta
23 days agoHillary
27 days agoCarole
1 months agoJunita
2 months agoJoanne
9 days agoLelia
12 days agoSharika
2 months agoThora
2 months agoKiera
2 months agoThora
2 months ago