Issue with your code, I tried running ruby with my solution and it works fine ~~
Function name is misleading, should be named getVowelCount instead of getCount
I need to see your code to have a opinion to that...
When I try to run my code in Ruby to see if my test cases work it spits out this error that seems to be a Kata based error and not one that is being produced from my code. Has anyone seen this before?
Error: An error occurred while loading spec_helper.
Failure/Error: require 'solution'
/workspace/default/lib/solution.rb:15: syntax error, unexpected end-of-input, expecting `end'
No examples found.
No examples found.
Finished in 0.00005 seconds (files took 0.10453 seconds to load)
0 examples, 0 failures, 1 error occurred outside of examples
Thank you so much, I listened to you and now it actually passed the test, so it was problem in that. Thanks again,a lot :-)
I dont know what im doing wrong with Katas, I have good result on my idle, in several katas, but here it doesnt pass the test or attemp...dont know hwy, because the return is the number of vowels in string...
for ex: this error....but it do return 5, not 4 as it says...
Should count all vowels
Incorrect answer for "aeiou": 4 should equal 5
It returns the value of the last operand, so it's returning undefined because console.log prints to the console, and returns undefined. Do those things in separate lines as I suggested, first console.log (optional) and then return.
What do you mean where did I learn to use that? Its pretty basic.
Anyways, so you got same problem as me? Like, solution is there, works perfectly yet it says task is not completed, idk what to do, its same with one other task.
thanks ~ closing ~~
Not a kata suggestion, and please don't post solutions in Discourse.
It's the same problem, where did you learn to use return x, console.log(x)?
return x, console.log(x)
This comment is hidden because it contains spoiler information about the solution
Very nice this is an interesting approach