Prompts used to generate

  • First Prompt: Generate javascript code to display “good morning” if it is before noon or “good afternoon” if it is afternoon
  • Second Prompt: Expand this code to tell the date and time underneath it
  • Third Prompt: Change date format to mm/dd/yyyy and the time format to not military time
  • Forth Prompt: Keep the same code but if it is past 6:30pm have it say “goodnight”