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 Express Basics Parameters, Query Strings, and Modularizing Routes Randomize Cards

My URL has the ID in it as well?

So I don't have to add the id parameter into the PUG template. Why is this?

Tom Geraghty
Tom Geraghty
24,174 Points

Can you paste in your code? I'm not sure I understand you fully; are you saying you found a solution different than the one in the video?

This also works:

extends layout.pug

block content
    h4 Section id content from card.pug
    h2 #{text}
    if hint
      a(href='?side=answer') Show Answer
        i Hint: #{hint}
      a(href='?side=question') Show Question