JS solution not working, although is correct and working locally. #2787
-
There's an easy fundamental javascript task: **Example: (Input --> Output)_ "Dermatoglyphics" --> true My solution is:
However it doesn't work within the Kata test environment. When I tested it locally and using jsfiddle.net it does work! I did some research within the code, and it looks like counts[elem] = 1 does not work when elem is a variable. In other words, you can define
but
This seems like some Kata testing environment bug. But please correct me if I'm wrong.l |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
What does your solution return for "moOse", or "KEep"? It should return Please mind that Github boards are not a good place to discuss questions related to.solving kata. The best place are kata discourse, or Codewars Discord and Cheers! |
Beta Was this translation helpful? Give feedback.
-
Forget it. My Bad. Sorry |
Beta Was this translation helpful? Give feedback.
-
This thread can be deleted :) |
Beta Was this translation helpful? Give feedback.
What does your solution return for "moOse", or "KEep"? It should return
false
for both.Please mind that Github boards are not a good place to discuss questions related to.solving kata. The best place are kata discourse, or Codewars Discord and
#help-solve
channel.Cheers!