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 trial

JavaScript Vue.js Basics Sweeping Vues: Loops, Methods, Directives Sweeping Vues Quiz 1

Jeremy Rickson
Jeremy Rickson
342 Points

Quiz question is unclear.

Question asks me to print name in h2 and age in p.

data: { characters: [ name: 'Dean', age: 39 ] so I use <h2>{{ characters.name }} </h2> and <p>{{ characters.age }}</p>

But this isn't correct. What am I doing wrong here?

3 Answers

Rich Donnellan
MOD
Rich Donnellan
Treehouse Moderator 27,684 Points

This line in the code is important:

<div v-for="character in characters">

That said, you'll need to update your answers to reference a single character.

Jeremy Rickson
Jeremy Rickson
342 Points

Hi Rich!

Thanks for the quick response! I did figure it out after retaking the quiz five times! lol :)

code should look like this <li v-for="character in characters">{{character}}</li>