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 Express Basics!
You have completed Express Basics!
Preview
Randomizing the cards the user sees will help them learn the material better. In this video, you'll be challenged to implement that feature!
This video doesn't have any notes.
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
Here's the card.pug template.
0:00
I've entered an anchor element
at the bottom of the page.
0:00
For the href,
the parts of the URL that will
0:03
change from card to card is the id and
the sideToShow.
0:08
I assigned a template
literal to the href and
0:16
added those values in for interpolation.
0:22
The text contents of the link
should either show question or
0:25
answer depending on where
the link is pointing.
0:28
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