Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Hi! Where is a new Kata with execSync. I'm waiting😊
try to use console.log() on the random tests that fail and according to it see the bug in your code.
? same problem......
"last argument - Expected: z, instead got: a"
inspect in a console what is a variable containing a number, then do the same with something else, what comes to your mind?
Thanks :)
I thought this was a good kata. I hadn't used Node's child-process module before, so the link to the docs were great. Good problem description as well. Kudos.
(Javascript ?) :
If you log
list
you don't logarguments
, you just log the first argument.And, of course, if there're more than one argument, the first is not the last :)
Im passing all but one test. When I log the arguments passed in, it is 'a', but the test is expecting 'z'.
a
... last argument - Expected: z, instead got: a
Error in the test?
Why was KayHub's answer hidden? A link to relevant documentation is a MUCH better instructional tool than randomly typing in questions to Google until an answer is found.
A link to relevant documentation would be very helpful here. No idea what I'm supposed to ask to learn what I'm supposed to learn here.
This comment is hidden because it contains spoiler information about the solution
Thank you so much ryandao! That is a big help to me. We'll see if I can make this approach work, or if I'll need to start over. =)
Your solution will fail a case like dict = ['ab', 'abc', 'd'], word = "abcd".
This comment is hidden because it contains spoiler information about the solution