diff --git a/challenges/01-front-end-development-certification/basic-javascript.json b/challenges/01-front-end-development-certification/basic-javascript.json index c8c51b9d0a..2d4007353b 100644 --- a/challenges/01-front-end-development-certification/basic-javascript.json +++ b/challenges/01-front-end-development-certification/basic-javascript.json @@ -5101,8 +5101,8 @@ "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 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(calcMin === 5, 'message: The lowest random number that can be generated by randomRange should be equal to your minimum number, myMin.');", + "assert(calcMax === 15, 'message: The highest random number that can be generated by randomRange should be 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 both myMax and myMin, and return a random number in your range.');" ],