Have you every played the game "Mad Libs?" (http://en.wikipedia.org/wiki/Mad_Libs). The general idea was that one player would have a story and ask another player blindly for nouns and adjectives, etc. and the end result was that you'd read the pre-written sotry fitten with their mostly out-of-context words filling in key spots of the story. It usually was pretty funny.
Let's build a Mad Libs game with Javascript... you'll create a script that contains a list of variables. You can either use an array or individual variables. You should use variables that are integers and text. You'll then create your story by concatenating the variables into the story.
For example, to create the story you could take a paragraph like this:
It is a period of civil war. Rebel spaceships, striking from a hidden base, have won their first victory against the evil Galactic Empire.
You would sub in variables for certain words:
It is a period of < ADJECTIVE > < NOUN >, Rebel < NOUN, plural >, striking from a < ADJECTIVE > < NOUN >, hav won their < NUMBER > victory against the evil < NOUN >.
Steps:
1. Come up with three to four sentence paragraph, decide which words you will replace and make a list of corresponding parts of speech. You should ask specifically for "a noun", "an adjective", "a number", corresponding to show how many elements you need.
2. In the forum denoted as "Lesson 2 - Mad Libs", post your list of word needs for a classmate to reply with a list of words for you to plug in for the variables.
3. Respond to one other classmate's post. Do not reply if someone else has already replied, find another post without a response.
4. With the response to your post, plug in their values for the variables, run the script and post the resulting story in the forum as a response to whomever answered your question.