Is the code i write rong help me

Tell us what’s happening:

Your code so far


function randomRange(myMin, myMax) {
// Only change code below this line
function randomeRange(ourMax,ourMin) {
Math.floor ( Math.random() *(ourmax-ourmin+1))+min 

// Only change code above this line
}
}

Your browser information:

User Agent is: Mozilla/5.0 (Linux; Android 9; SM-A105F) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Mobile Safari/537.36.

Challenge: Generate Random Whole Numbers within a Range

Link to the challenge:

You forgot to tell us what is wrong.

At a glance

  1. You have a function defined inside of a function. This is wrong.
  2. You are using undefined variables ourMax and ourMin (with bad capitalization)

The video is there to guide you, but generally copying pieces of the video won’t help you solve these challenges.

1 Like

Tell us what’s happening:

Your code so far


function randomRange(myMin, myMax) {
// Only change code below this line
function randomeRange(myMax,myMin) {
Math.floor( Math.random() *(max-min+1))+min 

// Only change code above this line
}
}

Your browser information:

User Agent is: Mozilla/5.0 (Linux; Android 9; SM-A105F) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Mobile Safari/537.36.

Challenge: Generate Random Whole Numbers within a Range

Link to the challenge:

First of all, you put randomRange function inside randomeRange function. And second, function should return

I have merged your topics. Please do not create multiple topics for the same problem.

1 Like