Warm up exercise #1

Goal: Understanding functions

Create a function that takes at least one argument. For example, you could make an "announce" function that alerts "Important announcement:" followed by the argument.

Call your function with an argument of your choice. For example, you could announce "Kittens are cute".

Make your announcement visible on your practice.html page.

Warm up exercise #2

Goal: Understanding return statements

Make your announce function return the text of your argument.

Call your function with an argument of your choice, and save the function's value as a variable. For example:

var myAnnouncement = announce('Kittens are cute!');

Output this variable to your HTML. Try putting the message on multiple parts of your page.