Question: Study the code below: function calculateResult ( $mark ) { if ( $mark < 4 0 ) return 'Fail'; else if ( $mark > =
Study the code below:
function calculateResult$mark
if$mark
return 'Fail';
else if $mark && $mark
return 'Supplementary Exam';
else if $mark && $mark
return 'Pass';
else if $mark
return 'Pass with distinction';
$result calculateResult;
What is stored in $result after the code is executed?
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
