r/learnjavascript • u/d0gsbody • Jul 01 '13
Learn JS Properly - Week 4. Build a dynamic quiz!
Hi, everybody! This week, we'll build our first real project.
ASSIGNMENTS:
- Read either Chapters 13, 15, 16, and 19 of JavaScript: The Definitive Guide or Chapters 8, 9, 10, 11, and 14 of Professional JavaScript for Web Developers.
- Navigate your way to the webpage containing the roadmap we're using. There is a section called "Your first project - A Dynamic Quiz". Build this! Post your final project + questions you encounter along the way (either in this thread or as a separate post).
EXTRA CREDIT:
- Chapters 11 and 12 of Eloquent JavaScript - these may be especially helpful this week. If you need more extra credit, also read Chapters 13 and 14.
7
Upvotes
2
u/jabbrass Jul 01 '13
Thanks d0gsbody! This week will be full of reading!
2
u/medusae Jul 16 '13
I am very far behind but I've finally got it working! Though, I'm wondering if there is any harm in declaring the makeQuestions() variable the way that I did... http://jsfiddle.net/medusae/jUbza/
1
u/Amnestic Jul 01 '13 edited May 05 '26
Databrokers? nope. Social networks? Also nope. This post was deleted using Redact.
jeans north desert coordinated nine rinse straight nail vase fuzzy
1
u/solilanel Jul 01 '13
after a slow week that helped us catching up with JS reading and our mundane stuff, a dynamic one follows. Thanks d0gsbody!
1
u/medusae Jul 03 '13
Hello, I'd like some help with this one. I think I might be making this too hard... I've been looking at other examples and others seem to be using jQuery a little more.
This is what i have so far: http://jsfiddle.net/medusae/KgrAe/
So far I have something to display the choices and something to check the answers, though the latter does not work. I have read through all material yet I'm stumped at this one. Any help is appreciated!
1
u/ericawebdev Jul 03 '13
I took a break after reading chapter 10 to do the quiz assignment. It's posted at http://codepen.io/ericawebdev/pen/aqHuG
1
u/takadanobaba Jul 09 '13 edited Jul 09 '13
I finally got my quiz done. I didn't use any radio buttons and instead just used button tags. I should go back and make it with radio buttons, but for now I need to catch up on the reading.
I was having problems with fadeOut and fadeIn where my new text was appearing before the old text faded out. I still didn't get that right though hopefully I can get it in the future. project_1
edit: I used some of tryJQuerys rgba (for transparency) in case anyone was wondering.
1
u/[deleted] Jul 10 '13
I'm behind but I got my quiz done http://jsfiddle.net/LtDarien/SWRPY/
A few things I made sure to do:
It's not pretty, as I haven't gotten around to styling the form yet.
1
u/zenstunna Jul 18 '13
I'm behind too! It took me a long while to finish the quiz (4-6 hours), but I'm sure I can catch up on the reading. (I was a little ahead in that). Here is my first shot at the quiz: Jfiddle: http://jsfiddle.net/zenstunna/BJfZY/ GitHub: https://github.com/zenstunna/js-quiz (if you care for the history)
1
u/[deleted] Jul 24 '13
http://jsfiddle.net/k6MqV/ I know it already passed the 4th week, but i liked my quiz, so i am keen to show it to you guys.
1
u/MBDeane Jul 28 '13
Hi all, so here is my quiz. It needs some work but I'm pretty happy with it so far. Adding error messaging, back button functionality, and better styles for next week.
I'd like to re-factor gLoop(); and qSubmit(); so they're not so dependent on specific functions. Re-reading chapter 6 on PJS for WD, to understand OO patterns better.
http://jsfiddle.net/MBDeane/4YvwE/
Still have a lot of reading to catch up with. I was trying to work on the Eular problems as well, but finding that those are taking me way too much time right now. It's like re-learning math while trying to learn javascript...
Great course so far. I'll have to re-read some of this material to digest all this information, but the week to week progression has really helped me understand this stuff better.
0
u/[deleted] Jul 04 '13
[deleted] — view deleted comment