master
Ron Reciproco 1 year ago
parent 9b328148e3
commit 7b619e8720

@ -117,13 +117,14 @@ 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 checkIfPassed = ((x, y) => x + y, true);
return x <= y;
}
console.log(checkIfPassed(38,50));
//Do not modify
//For exporting to test.js
//Note: Do not change any variable and function names. All variables and functions to be checked are listed in the exports.

Loading…
Cancel
Save