|
|
@ -117,13 +117,14 @@ console.log("Hello World");
|
|
|
|
Create a global variable called outside of the function called isPassingScore.
|
|
|
|
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.
|
|
|
|
-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.
|
|
|
|
-Log the value of the isPassingScore variable in the console.
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
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.
|
|
|
|