From 2bf03c6d38d5954403844383ef2c515ac448ecaa Mon Sep 17 00:00:00 2001 From: Chris-Reyna Date: Tue, 27 May 2014 14:25:45 -0500 Subject: [PATCH] Javascript Challenge Markdown Description and example of challenge --- javascript_challenge/js_challenge.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 javascript_challenge/js_challenge.md diff --git a/javascript_challenge/js_challenge.md b/javascript_challenge/js_challenge.md new file mode 100644 index 0000000..24a637d --- /dev/null +++ b/javascript_challenge/js_challenge.md @@ -0,0 +1,23 @@ +#JavaScript Challenge + +Create an html document that: + +1. Asks a Trivia question. + * Add a button that when clicked replaces the question with the answer. + +2. Ask a corresponding question. + * Add a button that when clicked replaces the question with an image. + +***Extra:*** add code that hides the button once clicked. + +###For Example: +**Q:** Who won the 2007 NBA Championship? + +**A:** The San Antonio Spurs + +**Q:** Would you like to see a picture? + +**A:** +![alt text](http://hoppingintopuddles.files.wordpress.com/2007/07/spurs-win.jpg) + +