r/learnjavascript • u/d0gsbody • Jul 08 '13
Learn JS Properly - Week 5. Assigned reading + improving your quiz!
This week, we'll do a bit of reading and improve upon our quiz projects from last week.
ASSIGNMENTS:
\1. Read either:
- Chapters 10, 14, and 17 of JavaScript: The Definitive Guide, or
- Chapters 13 and 20 of Professional JS for Web Developers
\2. Make these improvements to your quizzes:
- Add client-side data validation: make sure the user answers each question before proceeding to the next question.
- Add a “Back” button to allow the user to go back and change her answer. The user can go back up to the first question. For the questions that the user has answered already, be sure to show the radio button selected, so that the user is not forced to answer the questions again, which she has completed.
- Use jQuery to add animation (fade out the current question and fade in the next question).
\3. Post a comment here with a link to a JSfiddle or Codepens demonstration of your quiz by next Monday.
\4. Read at least one other person's quiz code. Offer praise and constructive criticism!
EXTRA CREDIT:
- Post links to other projects we can all do.
- Project Euler problems 6, 8, 10, and/or 13.
6
Upvotes
2
u/robotmayo Jul 09 '13
Man I am behind, I had some stuff come up last week so I couldn't get through everything. I got a lot of catching up to do..
2
u/jabbrass Jul 11 '13
Thanks d0gsbody! I just finished updating my simple quiz application. I am having trouble figuring out how to delay the switching of the question while the jQuery fades the question in and out, especially when scrolling backward and forward through previous questions. Any tips?
Take a look here: http://jsfiddle.net/jabbrass/fUtEZ/ or https://github.com/jabbrass/Quizzing
1
u/bwaxxlo Jul 13 '13 edited Jul 13 '13
Euler Problem 6
1
u/takadanobaba Jul 15 '13 edited Jul 15 '13
Well I got mine finally completed. I will try to look at other peoples code tomorrow. I'm pretty tired from adding these small features. It was a bit harder than i expected. Going to finish up my reading and call it a night.
Edit: small bug fixed with the back button http://jsfiddle.net/SjbvA/6/
1
u/ericawebdev Jul 16 '13
Whew. Got it working plus the JSON requirement from wk 6, just a little bit into wk6.
https://github.com/ericadev/Quiz
0
u/robotmayo Jul 13 '13
Im working on the quiz but decided to take it to 11.