diff --git a/challenges/01-front-end-development-certification/basic-javascript.json b/challenges/01-front-end-development-certification/basic-javascript.json index a80b54501e..a3ab766538 100644 --- a/challenges/01-front-end-development-certification/basic-javascript.json +++ b/challenges/01-front-end-development-certification/basic-javascript.json @@ -4149,10 +4149,10 @@ "function randomRange(myMin, myMax) {\n return Math.floor(Math.random() * (myMax - myMin + 1)) + myMin;\n}" ], "tests": [ - "assert(calcMin === 5, 'message: The random number generated by myFunction should be greater than or equal to your minimum number, myMin.');", - "assert(calcMax === 15, 'message: The random number generated by myFunction should be less than or equal to your maximum number, myMax.');", - "assert(randomRange(0,1) % 1 === 0 , 'message: The random number generated by myFunction should be an integer, not a decimal.');", - "assert((function(){if(code.match(/myMax/g).length > 1 && code.match(/myMin/g).length > 2 && code.match(/Math.floor/g) && code.match(/Math.random/g)){return true;}else{return false;}})(), 'message: myFunction() should use use both myMax and myMin, and return a random number in your range.');" + "assert(calcMin === 5, 'message: The random number generated by randomRange should be greater than or equal to your minimum number, myMin.');", + "assert(calcMax === 15, 'message: The random number generated by randomRange should be less than or equal to your maximum number, myMax.');", + "assert(randomRange(0,1) % 1 === 0 , 'message: The random number generated by randomRange should be an integer, not a decimal.');", + "assert((function(){if(code.match(/myMax/g).length > 1 && code.match(/myMin/g).length > 2 && code.match(/Math.floor/g) && code.match(/Math.random/g)){return true;}else{return false;}})(), 'message: randomRange should use use both myMax and myMin, and return a random number in your range.');" ], "type": "waypoint", "challengeType": 1