• ###### ejini战神resolved a question on "Typer.js" kata

OP solved it, closing

• ###### farhanadityacommented on "Something 's fishy..." kata

What do you mean the wrong way? Isn't that how we're supposed to do it? I mean, there's no way you can access a variable of an inner function without receiving it directly from them (by return) or forcing them to leak the variable onto the global scope (like what you did)

• ###### MMMAAANNNcommented on "Find heavy ball - level: novice" kata

Yes, you pass a sample in the form of two arrays which you have to create yourself to `scales.getWeigh()` and it returns a response. For example, if ball 1 is the heavy ball, the following will happen:

``````measurement = scales.getWeigh([0, 1], [2, 3])        ---> measurement === -1
measurement = scales.getWeigh([0, 2, 3], [4, 5, 6])  ---> measurement ===  0
measurement = scales.getWeigh([0, 2, 3], [1, 5, 6])  ---> measurement ===  1
``````
• ###### computerguy103commented on "Nth Root of a Number Redux" kata

Power and root are inverse operations, so your myPow function can with a very small modification be used to compute root instead.

• ###### bkaescommented on "Nth Root of a Number Redux" kata

@VladimirZd: You only showed `myPow`, but you didn't show us how you used that function. That might be an integral part. The numbers may differ at the 12th digit, so it would be interesting to see your actual complete solution.

• ###### ZozoFouchtracommented on "Nth Root of a Number Redux" kata

Nope; I didn't calculate power nor did any other solutions I saw. Your function works " "fine" " , I mean it returns wrong result because of JS floating point issues.

Passing solutions compute more "directly" the root and eventual remaining floating point issues are handled by an `assertFuzzyEquals` function bkaes-san wrote for us ( どうもありがとう！Dōmo arigatō! ).

• ###### ZozoFouchtracommented on "Nth Root of a Number Redux" kata

function myPow(n,pow)

Are-you trying to find the `nth power of x` ?
I thought the kata was about the `nth root of x`.

• ###### bkaescommented on "Nth Root of a Number Redux" kata

did you solve this ?

Uhm, yes, I've published this kata ;). Your solution seems fine, but could you post an actual error message?

• ###### bkaescommented on "Nth Root of a Number Redux" kata

That's interesting - could you add your code as comment? Don't forget to mark it as a spoiler and add proper formatting (e.g. indent with 4 spaces).

• ###### IVBakkercommented on "Magic Zeckendorf" kata

Can you explain what is the strange result you are talking about? Yes I think it is working, it is not very difficult.

• ###### sohilpandyacommented on "Simple Maths Test" kata

I have added the few tests that you have recommended in the submit tests section.

• ###### user4386369commented on "Convert a Number to money!!" kata

Thanks, I have updated to say that you only need to truncate and not round the number.

• ###### ZozoFouchtracommented on "Typer.js" kata

It seems your `.isString` method doesn't recognize a string created this way: `new String('a new String')` ie using `String` as constructor.

By the way, there're more than 50 other test cases after this one.
This kata is average ranked 6 kyu, if you really never used JS before may be you should try to solve easier ones before.