• Home
  • Free Trial
  • Sign In
  • Plans
  • Tracks
  • Library
  • Community
  • Support
  • Jobs
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • 21st Century Skills
      • • Android
      • • APIs
      • • Business
      • • C#
      • • Computer Science
      • • CSS
      • • Data Analysis
      • • Databases
      • • Design
      • • Development Tools
      • • Digital Literacy
      • • Equity, Diversity, and Inclusion (EDI)
      • • Go
      • • HTML
      • • Java
      • • JavaScript
      • • Learning Resources
      • • Machine Learning
      • • PHP
      • • Python
      • • Quality Assurance
      • • Ruby
      • • Security
  • josephweiss2
    josephweiss2
    6,932 Points

    Other solution

    Posted December 2, 2022 2:15pm by josephweiss2
    josephweiss2
    6,932 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,135 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,135 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,668 Points

    My solution using pugjs

    Posted February 23, 2021 5:05am by Sean Paulson
    Sean Paulson
    6,668 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,880 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,880 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,833 Points

    my solution

    Posted January 9, 2020 8:53pm by Zimri Leijen
    Zimri Leijen
    11,833 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.

    Treehouse

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

See Full Catalogue

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
  • Python Development
  • Data Analysis
  • UX Design

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
  • ...see more

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
  • ...see more

Explore

  • Plans
  • Perks
  • Public Library Access
  • Treehouse for Libraries
  • Treehouse for Businesses
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
Terms & Conditions | Privacy

© 2023 Treehouse Island, Inc.