S22 Revision

master
Ron Reciproco 1 year ago
parent 7b619e8720
commit 6600096eba

@ -117,12 +117,15 @@ console.log("Hello World");
Create a global variable called outside of the function called isPassingScore.
-This variable should be able to receive and store the boolean result of the checker function.
-Log the value of the isPassingScore variable in the console.
*/
function checkIfPassed(x,y) {
console.log("Is " + x +"/"+ y +" a passing score?");
return x <= y;
*/ let isPassed = 38;
let isPassingScore = 50;
function checkIfPassed(isPassed,isPassingScore) {
console.log("Is " + isPassed +"/"+ isPassingScore +" a passing score?");
return isPassed <= isPassingScore;
}
console.log(checkIfPassed(38,50));
console.log(checkIfPassed(isPassed,isPassingScore));
//Do not modify

Loading…
Cancel
Save