Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialEsther AlQaisi
2,311 PointsCorrect/Incorrect questions only displaying "NaN"
Here's a snapshot of my workspace: https://w.trhou.se/rebbdjzx0r
Not sure why the HTML values for the questions are "NaN." Any help is appreciated!
2 Answers
Jamie Moore
3,997 PointsHey Esther,
You're super close to getting this one done, but there's one tiny error which is causing confusion.
for ( let i = 0; i < arr.length; i++ ) {
items =+ `<li>${ arr[i] }</li>`;
}
Your for
loop which creates the list elements has one tiny typo. The items =+
should be items +=
.
Hope this helps!
Esther AlQaisi
2,311 PointsI knew I was overlooking some minor detail! I'm relieved. Thank you for pointing it out.