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

@ -120,10 +120,11 @@ console.log("Hello World");
*/ */
function checkIfPassed(x,y) { function checkIfPassed(x,y) {
console.log("Is " + x +"/"+ y +" a passing score?"); console.log("Is " + x +"/"+ y +" a passing score?");
return checkIfPassed = ((x, y) => x + y, true); return x <= y;
} }
console.log(checkIfPassed(38,50)); console.log(checkIfPassed(38,50));
//Do not modify //Do not modify
//For exporting to test.js //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. //Note: Do not change any variable and function names. All variables and functions to be checked are listed in the exports.

Loading…
Cancel
Save