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
2 months agoTamie
28 days agoLeonor
2 months agoSean
2 months agoKimbery
2 months agoAudry
2 months agoIsaac
1 months agoCatarina
2 months agoDesirae
2 months agoMirta
2 months agoHillary
2 months agoCarole
2 months agoJunita
3 months agoJoanne
1 months agoLelia
1 months agoSharika
3 months agoThora
3 months agoKiera
3 months agoThora
3 months ago