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
  • Jonathan Drake
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Jonathan Drake
    Full Stack JavaScript Techdegree Student 11,668 Points

    Text not displaying...

    Posted July 22, 2022 8:55pm by Jonathan Drake
    .a{fill-rule:evenodd;}techdegree
    Jonathan Drake
    Full Stack JavaScript Techdegree Student 11,668 Points
    • JavaScript
    • Express Basics
    • Parameters, Query Strings, and Modularizing Routes
    • Card Template

    1 Answer

  • Sean Gibson
    Sean Gibson
    38,363 Points

    dot vs. no dot in constant declaration

    Posted November 17, 2021 4:36am by Sean Gibson
    Sean Gibson
    38,363 Points
    • JavaScript
    • Express Basics
    • Parameters, Query Strings, and Modularizing Routes
    • Card Template

    2 Answers

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

    file path ../data/flashcards/json vs ./data/flashcards.json

    Posted August 12, 2021 7:42am by Calvin Luo
    .a{fill-rule:evenodd;}techdegree
    Calvin Luo
    Full Stack JavaScript Techdegree Student 11,952 Points
    • JavaScript
    • Express Basics
    • Parameters, Query Strings, and Modularizing Routes
    • Card Template

    0 Answers

  • Kyle Cameron
    Kyle Cameron
    20,683 Points

    Route Parameters Question ('/cards/:id')

    Posted December 30, 2020 3:54pm by Kyle Cameron
    Kyle Cameron
    20,683 Points
    • JavaScript
    • Express Basics
    • Parameters, Query Strings, and Modularizing Routes
    • Card Template

    4 Answers

  • Brendan Moran
    Brendan Moran
    14,052 Points

    Why not use res.locals?

    Posted September 30, 2020 10:48pm by Brendan Moran
    Brendan Moran
    14,052 Points
    • JavaScript
    • Express Basics
    • Parameters, Query Strings, and Modularizing Routes
    • Card Template

    0 Answers

  • Elias Starks
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Elias Starks
    Full Stack JavaScript Techdegree Graduate 13,605 Points

    getting a 500 code error when trying to reload the cards page

    Posted May 3, 2020 9:53pm by Elias Starks
    .a{fill-rule:evenodd;}techdegree seal-36
    Elias Starks
    Full Stack JavaScript Techdegree Graduate 13,605 Points
    • JavaScript
    • Express Basics
    • Parameters, Query Strings, and Modularizing Routes
    • Card Template

    0 Answers

  • Jonathan Grieve
    Jonathan Grieve
    91,254 Points

    Flashcard template not working

    Posted February 11, 2020 4:20pm by Jonathan Grieve
    Jonathan Grieve
    91,254 Points
    • JavaScript
    • Express Basics
    • Parameters, Query Strings, and Modularizing Routes
    • Card Template

    2 Answers

  • vamosrope14
    vamosrope14
    14,932 Points

    Can someone explain the code syntax and what the code means here?

    Posted August 8, 2019 2:56am by vamosrope14
    vamosrope14
    14,932 Points
    • JavaScript
    • Express Basics
    • Parameters, Query Strings, and Modularizing Routes
    • Card Template

    3 Answers

  • Dennis Mwangi
    Dennis Mwangi
    6,835 Points

    TypeError: Cannot destructure property `text` of 'undefined' or 'null'.

    Posted October 4, 2018 7:06am by Dennis Mwangi
    Dennis Mwangi
    6,835 Points
    • JavaScript
    • Express Basics
    • Parameters, Query Strings, and Modularizing Routes
    • Card Template

    1 Answer

  • Ceil-Ian Maralit
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Ceil-Ian Maralit
    Front End Web Development Techdegree Graduate 19,434 Points

    Where did the req.query came from?

    Posted September 18, 2018 8:40am by Ceil-Ian Maralit
    .a{fill-rule:evenodd;}techdegree seal-36
    Ceil-Ian Maralit
    Front End Web Development Techdegree Graduate 19,434 Points
    • JavaScript
    • Express Basics
    • Parameters, Query Strings, and Modularizing Routes
    • Card Template

    1 Answer

  • Tiffany Hsieh
    Tiffany Hsieh
    3,627 Points

    Why is the "hint" value defined as `cards[id]`?

    Posted May 5, 2018 5:59pm by Tiffany Hsieh
    Tiffany Hsieh
    3,627 Points
    • JavaScript
    • Express Basics
    • Parameters, Query Strings, and Modularizing Routes
    • Card Template

    1 Answer

  • Brian Patterson
    Brian Patterson
    19,588 Points

    This video was really poorly explained.

    Posted March 12, 2018 1:15pm by Brian Patterson
    Brian Patterson
    19,588 Points
    • JavaScript
    • Express Basics
    • Parameters, Query Strings, and Modularizing Routes
    • Card Template

    6 Answers

  • Akshit Jindal
    Akshit Jindal
    1,341 Points

    Why not using const text=cards[req.params.id].side?

    Posted December 10, 2017 8:04pm by Akshit Jindal
    Akshit Jindal
    1,341 Points
    • JavaScript
    • Express Basics
    • Parameters, Query Strings, and Modularizing Routes
    • Card Template

    1 Answer

  • Gerry K
    Gerry K
    5,877 Points

    Need clarifying of this set of code

    Posted July 10, 2017 7:35am by Gerry K
    Gerry K
    5,877 Points
    • JavaScript
    • Express Basics
    • Parameters, Query Strings, and Modularizing Routes
    • Card Template

    3 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