diff --git a/individual/backend/s22/activity/index.js b/individual/backend/s22/activity/index.js index 7103c59..b23f1e4 100644 --- a/individual/backend/s22/activity/index.js +++ b/individual/backend/s22/activity/index.js @@ -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.