Array methods error

Why do i get a type error message when i put .split() or .toLowerCase before i pass in .replace()?

It probably means that what you’re trying to split or convert to lowercase is not a string. Can you show us your code so far?

2 Likes