Skip to main content

🚀 In our NEW AI Bootcamp you'll build a working app in 28 days, no experience required. Free to all subscription levels.

✨ Earn college credits in Cybersecurity, JS, HTML, CSS and Python

Join the Treehouse affiliate program and earn 25% recurring commission! 🤑

  • Treehouse Logo
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
    • All Courses
    • Tracks
    • AI Bootcamp
    • College Credit
    • Techdegree Bootcamps
    • Front End Development
    • Full Stack JavaScript
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
    • Explore
    • Career Toolbox
    • Free Treehouse Near Me
    • Affiliates
    • Blog
    • Support
    • About
    • Learn
    • Beginner's Guide to Coding
    • Data Analysis with SQL & Python
    • Front-End Web Development
    • Python Programming Basics
    • Techdegree Bootcamp Overview
    • UX Design Fundamentals
    • AI Tools for Beginners
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks AI Bootcamp College Credit
  • Techdegree Bootcamps Front End Web Development Full Stack JavaScript
  • Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Explore Career Toolbox Free Treehouse Near Me Affiliates Blog Support About
    Learn Beginner's Guide to Coding Data Analysis with SQL & Python Front-End Web Development Python Programming Basics Techdegree Bootcamp Overview UX Design Fundamentals AI Tools for Beginners
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
Loading banner... Start your free trial at Treehouse
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • APIs
      • • Coding for Kids
      • • College Credit
      • • Computer Science
      • • CSS
      • • Data Analysis
      • • Databases
      • • Design
      • • Development Tools
      • • Digital Literacy
      • • Game Development
      • • Go Language
      • • HTML
      • • Java
      • • JavaScript
      • • Learning Resources
      • • Machine Learning
      • • No-Code
      • • PHP
      • • Professional Growth
      • • Python
      • • Quality Assurance
      • • React
      • • Ruby
      • • Security
      • • Swift
      • • Vibe Coding
  • josephweiss2
    josephweiss2
    8,699 Points

    Other solution

    Posted December 2, 2022 2:15pm by josephweiss2
    josephweiss2
    8,699 Points
    • JavaScript
    • Express Basics
    • Parameters, Query Strings, and Modularizing Routes
    • Randomize Cards

    1 Answer

  • karan Badhwar
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    karan Badhwar
    Web Development Techdegree Graduate 18,136 Points

    is it ok to remove the http://localhost:3000/card/

    Posted March 22, 2022 10:36pm by karan Badhwar
    .a{fill-rule:evenodd;}techdegree seal-36
    karan Badhwar
    Web Development Techdegree Graduate 18,136 Points
    • JavaScript
    • Express Basics
    • Parameters, Query Strings, and Modularizing Routes
    • Randomize Cards

    1 Answer

  • Thomas Karageorgiadis
    Thomas Karageorgiadis
    6,739 Points

    Logic in routes Vs in templates?

    Posted January 5, 2022 8:13am by Thomas Karageorgiadis
    Thomas Karageorgiadis
    6,739 Points
    • JavaScript
    • Express Basics
    • Parameters, Query Strings, and Modularizing Routes
    • Randomize Cards

    1 Answer

  • Hanwen Zhang
    Hanwen Zhang
    20,084 Points

    What does this line ' const templateData = { id, text, name };' means in the code? Why do we use { }? what type of data?

    Posted April 27, 2021 6:48pm by Hanwen Zhang
    Hanwen Zhang
    20,084 Points
    • JavaScript
    • Express Basics
    • Parameters, Query Strings, and Modularizing Routes
    • Randomize Cards

    3 Answers

  • Sean Paulson
    Sean Paulson
    6,669 Points

    My solution using pugjs

    Posted February 23, 2021 5:05am by Sean Paulson
    Sean Paulson
    6,669 Points
    • JavaScript
    • Express Basics
    • Parameters, Query Strings, and Modularizing Routes
    • Randomize Cards

    2 Answers

  • Steve Fau
    Steve Fau
    5,622 Points

    Solution working only halfway, but the code is the same in both cases..?

    Posted December 31, 2020 11:45am by Steve Fau
    Steve Fau
    5,622 Points
    • JavaScript
    • Express Basics
    • Parameters, Query Strings, and Modularizing Routes
    • Randomize Cards

    0 Answers

  • James Crosslin
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    James Crosslin
    Full Stack JavaScript Techdegree Graduate 16,882 Points

    My solution to adding the question and answer links

    Posted November 13, 2020 4:43pm by James Crosslin
    .a{fill-rule:evenodd;}techdegree seal-36
    James Crosslin
    Full Stack JavaScript Techdegree Graduate 16,882 Points
    • JavaScript
    • Express Basics
    • Parameters, Query Strings, and Modularizing Routes
    • Randomize Cards

    1 Answer

  • Hamzah Iqbal
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Hamzah Iqbal
    Full Stack JavaScript Techdegree Student 11,145 Points

    Cant we just use a(href=`${id}?side=${showSide}`)

    Posted July 7, 2020 8:44pm by Hamzah Iqbal
    .a{fill-rule:evenodd;}techdegree
    Hamzah Iqbal
    Full Stack JavaScript Techdegree Student 11,145 Points
    • JavaScript
    • Express Basics
    • Parameters, Query Strings, and Modularizing Routes
    • Randomize Cards

    1 Answer

  • Hamzah Iqbal
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Hamzah Iqbal
    Full Stack JavaScript Techdegree Student 11,145 Points

    What is the purpose of the ID?

    Posted July 7, 2020 8:41pm by Hamzah Iqbal
    .a{fill-rule:evenodd;}techdegree
    Hamzah Iqbal
    Full Stack JavaScript Techdegree Student 11,145 Points
    • JavaScript
    • Express Basics
    • Parameters, Query Strings, and Modularizing Routes
    • Randomize Cards

    2 Answers

  • Hamzah Iqbal
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Hamzah Iqbal
    Full Stack JavaScript Techdegree Student 11,145 Points

    404 is returned

    Posted July 7, 2020 8:37pm by Hamzah Iqbal
    .a{fill-rule:evenodd;}techdegree
    Hamzah Iqbal
    Full Stack JavaScript Techdegree Student 11,145 Points
    • JavaScript
    • Express Basics
    • Parameters, Query Strings, and Modularizing Routes
    • Randomize Cards

    0 Answers

  • Zimri Leijen
    Zimri Leijen
    11,835 Points

    my solution

    Posted January 9, 2020 8:53pm by Zimri Leijen
    Zimri Leijen
    11,835 Points
    • JavaScript
    • Express Basics
    • Parameters, Query Strings, and Modularizing Routes
    • Randomize Cards

    1 Answer

  • Bobby Brice
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Bobby Brice
    Full Stack JavaScript Techdegree Student 10,909 Points

    anchor tag is displaying, '=sideToShowDisplay' rather than Question and Answer

    Posted December 4, 2019 2:09am by Bobby Brice
    .a{fill-rule:evenodd;}techdegree
    Bobby Brice
    Full Stack JavaScript Techdegree Student 10,909 Points
    • JavaScript
    • Express Basics
    • Parameters, Query Strings, and Modularizing Routes
    • Randomize Cards

    1 Answer

  • polentz
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    polentz
    Full Stack JavaScript Techdegree Student 11,755 Points

    Why in the pug template he did not have to include the /cards part of the url?

    Posted October 15, 2019 10:36pm by polentz
    .a{fill-rule:evenodd;}techdegree
    polentz
    Full Stack JavaScript Techdegree Student 11,755 Points
    • JavaScript
    • Express Basics
    • Parameters, Query Strings, and Modularizing Routes
    • Randomize Cards

    1 Answer

  • Ran Wang
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Ran Wang
    Full Stack JavaScript Techdegree Graduate 32,191 Points

    How can the template read the properties?

    Posted March 20, 2019 3:32pm by Ran Wang
    .a{fill-rule:evenodd;}techdegree seal-36
    Ran Wang
    Full Stack JavaScript Techdegree Graduate 32,191 Points
    • JavaScript
    • Express Basics
    • Parameters, Query Strings, and Modularizing Routes
    • Randomize Cards

    1 Answer

  • Nicholas Smay
    Nicholas Smay
    14,768 Points

    Question link not showing up

    Posted March 19, 2019 11:17pm by Nicholas Smay
    Nicholas Smay
    14,768 Points
    • JavaScript
    • Express Basics
    • Parameters, Query Strings, and Modularizing Routes
    • Randomize Cards

    1 Answer

  • Dehn Hunsworth
    Dehn Hunsworth
    7,189 Points

    cant get server running

    Posted February 21, 2019 5:37am by Dehn Hunsworth
    Dehn Hunsworth
    7,189 Points
    • JavaScript
    • Express Basics
    • Parameters, Query Strings, and Modularizing Routes
    • Randomize Cards

    0 Answers

  • Remi Vledder
    Remi Vledder
    14,144 Points

    Express: Possible to redirect to a random card page that does not have the current cards page ID?

    Posted December 27, 2018 1:56pm by Remi Vledder
    Remi Vledder
    14,144 Points
    • JavaScript
    • Express Basics
    • Parameters, Query Strings, and Modularizing Routes
    • Randomize Cards

    2 Answers

  • Damian McCarthy
    Damian McCarthy
    3,656 Points

    The ID variable comes up as undefined when I click the link, The other variable works fine though

    Posted July 15, 2018 6:06am by Damian McCarthy
    Damian McCarthy
    3,656 Points
    • JavaScript
    • Express Basics
    • Parameters, Query Strings, and Modularizing Routes
    • Randomize Cards

    1 Answer

  • Stephen Powers
    Stephen Powers
    12,091 Points

    Url issues

    Posted June 17, 2018 5:45am by Stephen Powers
    Stephen Powers
    12,091 Points
    • JavaScript
    • Express Basics
    • Parameters, Query Strings, and Modularizing Routes
    • Randomize Cards

    1 Answer

  • Brian Patterson
    Brian Patterson
    19,588 Points

    Pretty sure his code is wrong!

    Posted March 12, 2018 10:08pm by Brian Patterson
    Brian Patterson
    19,588 Points
    • JavaScript
    • Express Basics
    • Parameters, Query Strings, and Modularizing Routes
    • Randomize Cards

    4 Answers

  • Brian Patterson
    Brian Patterson
    19,588 Points

    Getting a 404 when I click the answer link.

    Posted March 12, 2018 5:44pm by Brian Patterson
    Brian Patterson
    19,588 Points
    • JavaScript
    • Express Basics
    • Parameters, Query Strings, and Modularizing Routes
    • Randomize Cards

    2 Answers

  • Brian Patterson
    Brian Patterson
    19,588 Points

    Again! Haven't a scooby do!

    Posted March 12, 2018 5:27pm by Brian Patterson
    Brian Patterson
    19,588 Points
    • JavaScript
    • Express Basics
    • Parameters, Query Strings, and Modularizing Routes
    • Randomize Cards

    1 Answer

  • Peter Lu
    Peter Lu
    10,612 Points

    My URL has the ID in it as well?

    Posted September 16, 2017 1:00am by Peter Lu
    Peter Lu
    10,612 Points
    • JavaScript
    • Express Basics
    • Parameters, Query Strings, and Modularizing Routes
    • Randomize Cards

    0 Answers

Posting to the forum is only allowed for members with active accounts.
Please sign in or sign up to post.

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
SEE ALL

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
SEE ALL

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
SEE ALL

About Us

  • About
  • Blog
  • Community
  • Stories
  • Contact
  • Gift Card

Explore

  • Plans
  • Affiliates
  • Perks
  • Shop
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses

Treehouse is an online technology education platform founded in 2011. Treehouse offers more than 700 self-paced, video-based courses in web development, programming, data analysis, design, and AI, plus two project-based bootcamp programs in Front End Web Development and Full Stack JavaScript. Individual Treehouse plans start at $25 per month and include a 7-day free trial. Treehouse serves individual learners, businesses, schools, and public libraries. Cardholders at participating U.S. public libraries can use Treehouse for free. Select Treehouse courses, offered with University Pathways International, are recommended for college credit by ACE and NCCRS. Treehouse learners earn digital certificates for completed Tracks.

Terms & Conditions · Privacy · © 2026 Treehouse Island, Inc.
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
  • Discord