Freecodecamp: Waypoint: Generate Random Fractions with JavaScript

Created on 28 Oct 2015  Â·  15Comments  Â·  Source: freeCodeCamp/freeCodeCamp

Challenge Waypoint: Generate Random Fractions with JavaScript has an issue.
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/600.7.12 (KHTML, like Gecko) Version/7.1.7 Safari/537.85.16.
Please describe how to reproduce this issue, and include links to screenshots if possible.

My code:

function myFunction() {
  // Change the 0 to Math.random().
  // Only change code below this line.

  return 0;

  // Only change code above this line.
}

// We use this function to show you the value of your variable in your output box.
(function(){return myFunction();})();

I couldn't find a place for the issue I'm having. I can not click on "help" or any of the links att he top right of the page. I click on them and nothing happens The only 2 links I can get to work is the "Freecodecamp" link and "bug" I tried shutting down. I tried reset. This just started like 2 lessons ago I worked find up til then. Any ideas??

Most helpful comment

Your code has an infinite loop. You are calling myFunction within myFunction.

All 15 comments

This just started like 2 lessons ago I worked find up til then. Any ideas?? (should read)
It worked fine up til then

Are you getting any errors in your developer console?

nothing that a ; or capital letter doesn't take care of. but i needed help on this lesson but i can get the help link to work

here is a screenshot if it is helpful. there is an error there but i think its cause i need help with the code
screen shot 2015-10-28 at 3 30 19 pm

Unfortunately I'm not able to repro and I don't have any hunches on what would be causing this. Leaving this open in case someone else has any ideas or can repro.

thank you. i really need help here for both the lesson and this problem

Your code has an infinite loop. You are calling myFunction within myFunction.

If you need help, the help link simply opens the gitter chat at https://gitter.im/FreeCodeCamp/Help

Please reread the issue from the beginning. The issue is I can NOT click on the help link or any of the links in the upper right hand corner. This just started. I can not go to the help desk because when I click on help it doesn't respond...At all

@eagle122 try resetting the code one more time. If that won't help try How to clear specific values from your browser's local storage or Clear Your Browser's Local Storage.
Closing as not an issue with the tests. Feel free to reopen if you still experience problems, thanks.

removed solution by mod

try only changing the return line.

@ohmiler what 2.122323 means?

Just a custom float number you can use them :D

2017-01-07 22:57 GMT+07:00 Francesco Lippolis notifications@github.com:

@ohmiler https://github.com/ohmiler what 2.122323 means?

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/FreeCodeCamp/FreeCodeCamp/issues/3943#issuecomment-271091548,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ALH3mzQ4Nz_mrnZINGJY8GomUUPzNNheks5rP7YHgaJpZM4GW_l8
.

You can make a variable within the function and set it to Math.random(); then proceed to follow the instructions.

Was this page helpful?
0 / 5 - 0 ratings