Ad
  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    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.

  • Custom User Avatar

    I am not sure how to get it to log each sequential variation.

  • Custom User Avatar

    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.)

  • Custom User Avatar

    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.

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    I know about the trailing whitespace. I am not sure why it is being put there. How would I fix that?

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution