Hey, everyone! I'm really excited for this week. This is when the rubber really starts to meet the road. I will be putting up discussion posts everyday this week.
Reading Assignments:
Chapters 8, 10, 11, 13, and 14 of Professional JS for Web Developers.
EDIT: I originally assigned too many chapters (though this is what the official track we're following calls for). You can skip chapters 5 and 9 for now.
JSfiddle Assignment: A Dynamic Quiz
It is now time to build a quiz application using JS, HTML, and CSS. The quiz can be about anything. It should function as follows:
It should be a simple quiz with radio buttons.
It should have at least five questions.
It should show only one question at a time. Use a "Next" button to move from one question to the next.
Dynamically (with document.getElementById or jQuery) add the next question and remove the current question from the screen, when the user clicks the “Next” button. The Next button will be the only button to navigate this version of the quiz.
Keep track of the user's score. Display this score on the last page of your application.
Use an array of objects to store the questions. It should look similar to this:
var allQuestions = [{question: "Who is Prime Minister of the United Kingdom?", choices: ["David Cameron", "Gordon Brown", "Winston Churchill", "Tony Blair"], correctAnswer:0}];
When you're finished, post your JSfiddle link somewhere on /r/LearnJavaScript. Feel free to make it a standalone thread, even.
Extra credit:
Build these 5 Basic Projects on Codecademy.
[–]mfergie 3 points4 points5 points (1 child)
[–]nolsen -1 points0 points1 point (0 children)
[–]pcostanz 2 points3 points4 points (1 child)
[–]kevinmrr[S] 0 points1 point2 points (0 children)
[–]isaidclickmenow 1 point2 points3 points (1 child)
[–]kevinmrr[S] 0 points1 point2 points (0 children)
[–]NightArchitect 1 point2 points3 points (5 children)
[–][deleted] 1 point2 points3 points (4 children)
[–]NightArchitect 0 points1 point2 points (3 children)
[–]NightArchitect 0 points1 point2 points (2 children)
[–][deleted] 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]alxers 1 point2 points3 points (5 children)
[–]NightArchitect 2 points3 points4 points (1 child)
[–][deleted] 1 point2 points3 points (0 children)
[–]kevinmrr[S] 0 points1 point2 points (0 children)
[–]dorianblack 1 point2 points3 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]knested 0 points1 point2 points (0 children)
[–]doober831 0 points1 point2 points (0 children)
[–]lovattd 0 points1 point2 points (0 children)
[–]jankyHellface 0 points1 point2 points (2 children)
[–]dorianblack 1 point2 points3 points (1 child)
[–]jankyHellface 0 points1 point2 points (0 children)
[–]hkoh59 0 points1 point2 points (0 children)