I also had this issue at the beginning. Notice that the words you need to work on are the input split by either _ or -. For example for the input "A-B_C", you'd work on "A", "B", "C"
Ah okay, thank you so much for your feed back, I'm kinda new to Codewars, so still getting familiar with how things work on here.
I was wondering if you know the name of the discord server for this platform..
Your code is wrong, but I should't tell you why. Instead, use all of the sample tests in VS code so you can see where it fails. This is a common circumstance where coders think that when their code passes in VS code, that's that, whereas it's often the case that VS code is lacking test case coverage.
The first word within the output should be capitalized only if the original word was capitalized (known as Upper Camel Case, also often referred to as Pascal case).
It is in the left sidebar under "Chat": https://discord.gg/mSwJWRvkHA
I also had this issue at the beginning. Notice that the words you need to work on are the input split by either _ or -. For example for the input "A-B_C", you'd work on "A", "B", "C"
Check the left bar, Chat: https://discord.gg/mSwJWRvkHA
Ah okay, thank you so much for your feed back, I'm kinda new to Codewars, so still getting familiar with how things work on here.
I was wondering if you know the name of the discord server for this platform..
Your code is wrong, but I should't tell you why. Instead, use all of the sample tests in
VS code
so you can see where it fails. This is a common circumstance where coders think that when their code passes inVS code
, that's that, whereas it's often the case thatVS code
is lacking test case coverage.This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Are you absolutely sure your code passes this test case locally?
Ooh okay, the first word shouldn't be capitalised unless it's already capitalised, thanks alot :)
A problem with your code is not a kata issue. Select Node v18 and see the only sample test your code fails there.
This comment is hidden because it contains spoiler information about the solution