I’ve seen some responses to this challenge similar to mine that have apparently worked.
however mine keeps returning this on the console:
function random {
[native code]
}
I can’t find anything about this response, and why it’s not working.
Your code so far
function randomFraction() {
// Only change code below this line.
var rnd = Math.random;
return rnd;
// Only change code above this line.
}
Your browser information:
Your Browser User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_5) AppleWebKit/603.2.4 (KHTML, like Gecko) Version/10.1.1 Safari/603.2.4
.
Link to the challenge:
https://www.freecodecamp.org/challenges/generate-random-fractions-with-javascript