Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
- Introducing Conditional Statements 8:39
- Comparison Operators 7:19
- Conditional Statements and Operators Review 7 questions
- Use Comparison Operators 1 objective
- Boolean Values 7:32
- Program Multiple Outcomes 5:45
- Booleans and Else If Review 5 questions
- Write an 'if' Statement 1 objective
- Add an 'else if' Clause 1 objective
- Add a Final 'else' Clause 1 objective
- Test Multiple Conditions With the && Operator 3:57
- Test Multiple Conditions With the || Operator 4:04
- Document Your Code with Comments 4:43
- Multiple Conditions and JavaScript Comments Review 6 questions
- The Conditional Challenge 2:17
- The Conditional Challenge Solution 6:23
- Use Multiple Conditions 1 objective

- 2x 2x
- 1.75x 1.75x
- 1.5x 1.5x
- 1.25x 1.25x
- 1.1x 1.1x
- 1x 1x
- 0.75x 0.75x
- 0.5x 0.5x
There are several ways you could've built the quiz app. This video covers one solution, using only the concepts taught in this course.
Correction to the "ranking" conditional statement
The second else if
statement should check for 1-2 correct answers using the condition ( correct >= 1 )
:
if ( correct === 5 ) {
rank = "Gold";
} else if ( correct >= 3 ) {
rank = "Silver";
} else if ( correct >= 1 ) { // check for 1-2 correct
rank = "Bronze";
} else {
rank = "None :(";
}
Resources
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up-
MightyIronElf 15
2,359 Points1 Answer
-
Jonathan Hayes
Full Stack JavaScript Techdegree Student 3,008 Points1 Answer
-
Zaal Rottunda
Full Stack JavaScript Techdegree Student 1,796 Points2 Answers
-
Dawson Click
2,666 Points1 Answer
-
Greg Taylor
798 PointsCan I do it this way? Video Conditional Challenge Solution
Posted by Greg TaylorGreg Taylor
798 Points1 Answer
-
Steve Brown
2,781 Points1 Answer
-
John Lukacs
26,806 Points1 Answer
-
Michael Cronk
8,970 Points1 Answer
-
ChienTsun Chan
7,042 Points0 Answers
-
Frank Greek
Full Stack JavaScript Techdegree Student 981 Points1 Answer
-
mjugi
9,448 Points1 Answer
-
PLUS
simsima
Courses Plus Student 2,560 Points1 Answer
-
Akshaan Mazumdar
3,787 Points2 Answers
-
David Douglas
3,719 Points1 Answer
-
Daniel Corio-Rosas
6,995 Points1 Answer
-
Bodie Wood
Full Stack JavaScript Techdegree Student 4,027 Points2 Answers
View all discussions for this video
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up