**Tell us what’s happening
code undefined having issues
Your code so far
function randomRange (myMin, myMax) {
Math.floor(Math.random() * (myMax - myMin + 1)) + myMin;
}
var myRandom = randomRange(5, 15);
console.log(myRandom)
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36 Edg/87.0.664.75
.
Challenge: Generate Random Whole Numbers within a Range
Link to the challenge:
You do not have a return value, so your function returns undefined
.
Here is the starter code with the original return
statement:
function randomRange(myMin, myMax) {
// Only change code below this line
return 0;
// Only change code above this line
}
Wow can’t believe i miss that
Thanks alot
1 Like
system
Closed
4
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.