Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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 25,780 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>