Ad
  • Custom User Avatar

    I tested my code on node v0.10.35, and on my Firefox 36. No errors ocurred.

    But this kata can't be solved.I'm new to Codewars.I can only see the Output just shows Incorrect!

    I wonder if there's any error ocurred.Or I've misunderstood the kata's description ?

    What I've implemented:

    • obj = {}
      • obj.random(): return undefined.
      • obj.toRandomArray(): return [].
    • obj have many keys and values
      • obj.random(): return a random selected value from all non-Object value.
      • obj.toRandomArray(): return a random ordered Array consists of all non-Object value.