Ad
  • Custom User Avatar

    My code returns [ "Tablets", "Music CDs", "Speakers" ]

    It doesn't, have you read the error message?

  • Custom User Avatar

    "Speakers" goes before "Keyboards"

    expected [..., "Keyboards"] to deeply equal [..., "Speakers"]

    And what's the question? Your logic is correct, the only thing that's left is to make your code correct too.

  • Custom User Avatar

    Use console.log(peopleInLine); to print the input.