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,148 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:

card.pug
extends layout.pug

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