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) + +