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,157 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