charAt(0)
and substr()
isn’t covered, but [0]
and slice()
is. Neither of them are wrong, of course.
Go visit the Useful string methods page, and take a look at the “Retrieving a specific string character” and “Finding a substring inside a string and extracting it” sections.
Also, try not to reassign the quote
variable. That is, the line number 4:
let quote = 'I dO nOT lIke gREen eGgS anD HAM';
// Add your code here
quote = 'I do not like green eggs and ham'; // Try to complete without this