Generate Random Fractions with JavaScript Help. Not sure about this

Tell us what’s happening:

I dont undertand the code

Your code so far

function randomFraction() {
  // Only change code below this line.
  var result = 0.1;
  // Math.random() can generate 0. We don't want to     return a 0,
  // so keep generating random numbers until we get one     that isn't 0
  while (result === 0.1) {
    result = Math.random();
  // Only change code above this line.

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36.

Link to the challenge:

This challenge is simpler than you think.

You just need to return Math.random() saved in result variable. The tests are expecting you to return a decimal number which Math.random will provide.

Thank you. I have just resolved. Very helpful