** The result of randomWholeNum should be a whole number**
**Your code so far**
function randomWholeNum() {
// Only change code below this line
var randomNumberBetween0and19 = Math.floor(Math.random() * 20);
function randomWholeNum() {
return Math.floor(Math.random() * 10);
}
}
console.log(randomWholeNum())
**Your browser information:**
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.150 Safari/537.36
.
Challenge: Generate Random Whole Numbers with JavaScript
Link to the challenge: