Exercise Weekend

Let's do some more branching practice, shall we?

  • Create a website where the user enters a number for the current temperature outside, in fahrenheit. If the temperature is less than 60 degrees, show them the message "It's cold out!". If the temperature is over 80 degrees, show them the message "It's too hot!". Otherwise, display the message "It's lovely out!".
  • Create a fortune telling website which tells the user to enter their birth month and then displays a sentence about their future.
  • Expand your fortune telling website by asking the user for their favorite color. There should be a different fortune for each color and month. Create a function which returns a message based on color choice and a function which returns a message based on month. Then you can concatenate the two messages and display the final message to the browser.