Makes
(Kyle)
1
Not exactly sure why I am not getting the:
‘The machine is turned off. Turn it on to process your score.’;
else statement to work. If anyone could shine some light on why, that would be great.
Here is a link: https://codepen.io/Makeshonn/pen/vYymqoX
https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Building_blocks/Test_your_skills:_Conditionals
hknlgn
(kpthkn)
2
hi, i’ve just finished the conditionals test2 and trying to figure out how to solve conditionals test3 
I checked your code. The problem is, you put your “else” statement in second conditional. It should be in first conditional.
You have two conditional in that test. First begins with:
if(machineActive) {…
and the second begins with:
if(score < 0 || score > 100) {…
your else statement should belongs to the first one.
This is the last 4 lines of your code:
} else {
response = ‘The machine is turned off. Turn it on to process your score.’;
}
}
it should be like this:
}
}else {
response = ‘The machine is turned off. Turn it on to process your score.’;
}