Strings: Task 3


  1. Change the casing to correct sentence case (all lowercase, except for the upper case first letter.) Store the new quote in a variable called fixedQuote.
    Hint: This will take more than one line of code.
  2. In fixedQuote, replace "green eggs and ham" with another food that you really don't like.
    In other words, store this new quote in the new variable called fixedQuote.
    Hint: A certian method can be used more that once on the same line of code.
  3. Add a full stop onto the end of the qoute, and save the final version in a variable called finalQuote

MDN web docs default version:


My version: (all the task objectives are still contained in this example, just in a slightly different order and result).