Hi there, I need a review for my recent test solutions, links are given below:
Conditionals 1 & task link
Conditionals 2 & task link
Conditionals 3 & task link
Conditionals 4 & task link
Thank you in Advance,
Dinesh
Hi there, I need a review for my recent test solutions, links are given below:
Conditionals 1 & task link
Conditionals 2 & task link
Conditionals 3 & task link
Conditionals 4 & task link
Thank you in Advance,
Dinesh
Hi @Dinesh_Sake
Well done!
Here are my comments:
Correct.
Correct. The line response = "The Machine is on!"; is superfluous since response always gets overwritten.
Correct. For better readability I recommend indenting the code that belongs to each case:case (score >= 0 && score < 20):
response = 'That was a terrible score — total fail!';
break;
case (score >= 20 && score < 40):
...
Correct.Happy coding,
Michael
Okay, I did the changes recommended by you. Thanks for the input.
Nice formatting, @Dinesh_Sake!
Looks much better know. 