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.
This comment is hidden because it contains spoiler information about the solution
Good, now we have a starting point. So now, what is the
length
ofstringArray
immediately after its declaration?It looks like this:
let stringArray = [];
I am learning JavaScript in the school I am going to and I watched a video with this Kata challenge in it. I followed what they did in the video. I am not able to send the video.
what does the first appearence of
stringArray
in your code look like?I am not sure how to get it to log each sequential variation.
well then, you're not carefully logging the sequential variations of
stringArray
thoroughly enoughThe thing is, when I console log the
stringArray
I only get an empty array in the console.(I was looking at the other parts as well and it adds a trailing whitespace at the end of every string.)
What exactly are the first three (3) lengths of
stringArray
throughout your code while attempting this test case?I am pretty sure yes. The whitespace gets added in the
.join()
method at the end. I came to that conclusion when I removed the whitespace inside the.join()
property which removed the trailing whitespace at the end of emocleW. Although, I can't leave it like that because it also removes all of the whitespaces in the other strings. I added in a couple if statements to see if that would help at all but it didn't do anything.you logged all the steps to the construction of
stringArray
? you're aware of its length at all times?This comment is hidden because it contains spoiler information about the solution
you could
console.log()
the steps of your code to see how you're getting your result...I know about the trailing whitespace. I am not sure why it is being put there. How would I fix that?
issue
is only for when you can show there is a problem with the kata, not if you can't solve it. Instead post as aquestion
.Loading more items...