Hello Everyone,
what is wrong with my code? I am not getting the output. Its showing
Your code so far
var randomNumberBetween0and19 = Math.floor(Math.random() * 20);
function randomWholeNum() {
// Only change code below this line.
var random = Math.floor(Math.random() * 10);
return random;
}
Your browser information:
Your Browser User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/602.4.8 (KHTML, like Gecko) Version/10.0.3 Safari/602.4.8.
Link to the challenge:
https://www.freecodecamp.org/challenges/generate-random-whole-numbers-with-javascript