Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed Practice JavaScript Basics: Conditional Strings!
You have completed Practice JavaScript Basics: Conditional Strings!
Preview
This video covers one solution to the challenge.
Resources
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
Keep watching to see one solution and
then go ahead and give it another try.
0:00
Let's start from the top.
0:03
First, I assign the array of objects
to the superheroes variable.
0:05
This allowed us to access and
manipulate the data provided directly.
0:11
For the dynamic insertion
into the webpage,
0:16
I targeted the main element which
will hold our superheros sections.
0:19
I cycled through each superhero in
our array using a classic for loop.
0:25
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