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
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.
I am not sure how to get it to log each sequential variation.
The 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.)
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.This comment is hidden because it contains spoiler information about the solution
I know about the trailing whitespace. I am not sure why it is being put there. How would I fix that?
This comment is hidden because it contains spoiler information about the solution