Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll

- 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
This video covers one way to improve the quiz program by keeping track of the number of questions answered correctly and incorrectly.
Function for creating list items:
function createListItems(arr) {
let items = '';
for (let i = 0; i < arr.length; i++) {
items += `<li>${arr[i]}</li>`;
}
return items;
}
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up-
Joshua Moten
2,404 Points2 Answers
-
Piero Meza
2,285 Points1 Answer
-
Samuel Kleos
Front End Web Development Techdegree Student 13,728 Points1 Answer
-
Samuel Llibre-Pillco
15,467 Points1 Answer
-
Micah Angelica Baguio
3,409 Points1 Answer
-
Axel Lancieri
Front End Web Development Techdegree Graduate 17,291 Points0 Answers
-
Nicolás Melgarejo
15,647 Points0 Answers
-
Michael Arasimowicz
Full Stack JavaScript Techdegree Student 1,794 PointsSolution but not happy with it
1 Answer
-
Labida Alyana
5,926 Points1 Answer
-
Amani Wainaina
6,722 Points3 Answers
-
Cory Rhodes
5,096 PointsI am getting 'undefined' as well. I decided to the assignment a little differently; but anyway, here is the code.
Posted by Cory RhodesCory Rhodes
5,096 Points1 Answer
-
Charlie Bird
7,277 Points1 Answer
-
Carmen Chow
Full Stack JavaScript Techdegree Student 578 Points2 Answers
-
Christian Dianne Oro
2,366 Points1 Answer
-
David Shulkin
Front End Web Development Techdegree Student 10,255 Points0 Answers
-
Esther AlQaisi
2,311 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