Ad
  • Default User Avatar

    How is it not a string? When doing "typeof title" it says "string". What am I missing?

  • Custom User Avatar

    The answer is in the error itself: you're trying to use toLowerCase on undefined. It's clearly not a string.