From d5eebe381020ec55cb60ba99619fc83a24ee8c91 Mon Sep 17 00:00:00 2001 From: Kristyn Bryan Date: Thu, 9 Jun 2016 16:23:47 -0400 Subject: [PATCH] Update README.md --- unit_02/w05d02/homework/README.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/unit_02/w05d02/homework/README.md b/unit_02/w05d02/homework/README.md index b89115f..3a25400 100644 --- a/unit_02/w05d02/homework/README.md +++ b/unit_02/w05d02/homework/README.md @@ -39,11 +39,11 @@ Prerequisites: Javascript

#Magic 8 Ball APP - Create an express application. -- Create a route of `'/magic'` that should expect one parameter which is a question to ask the 8ball. -- The params of the route should be a question. (ex. `'/magic/Will%20I%20Be%20A%20Millionaire'`) +- Create a route of `'/magic'` that should expect a phrase in the URL that ask the Magic 8 ball a question. +- So if the user hits that route and asks a question of "Will I be a Millionaire" (ex. `'/magic/Will%20I%20Be%20A%20Millionaire'`) he should have return to him his question AND a random Magic 8 ball response (see the array below) on the screen. - Remember that we can't use spaces in the url, so we use `%20` to express a space in the url. -- So if the user hits that route and asks a question of "Will I be a Millionaire" he should get his question asked and a random 8ball quote on the screen. -- Use this array of 8ball quotes..... +- So if the user hits that route and asks a question of "Will I be a Millionaire" he should get his question asked and a random Magic 8 ball quote on the screen. +- Use this array of Magic 8 ball responses..... ``` ["It is certain", "It is decidedly so", "Without a doubt", "Yes definitely","You may rely on it", "As I see it yes", "Most likely", "Outlook good","Yes", "Signs point to yes", "Reply hazy try again", "Ask again later","Better not tell you now", "Cannot predict now", "Concentrate and ask again","Don't count on it", "My reply is no", "My sources say no","Outlook not so good", "Very doubtful"] @@ -54,6 +54,8 @@ Prerequisites: Javascript
"Commit 2: Magic 8 Ball express application created."
+# Example express application +
## Views Index