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
  • Sufiyaan Haroon
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Sufiyaan Haroon
    Full Stack JavaScript Techdegree Student 9,558 Points

    Can my code be better or be writtien easier:

    Posted July 8, 2023 11:32pm by Sufiyaan Haroon
    .a{fill-rule:evenodd;}techdegree
    Sufiyaan Haroon
    Full Stack JavaScript Techdegree Student 9,558 Points
    • JavaScript
    • JavaScript Arrays
    • Multidimensional Arrays
    • Build a Quiz Challenge – One Solution

    3 Answers

  • Dennis Trinidad
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Dennis Trinidad
    Full Stack JavaScript Techdegree Student 759 Points

    Variables Let, Const

    Posted December 23, 2022 9:32pm by Dennis Trinidad
    .a{fill-rule:evenodd;}techdegree
    Dennis Trinidad
    Full Stack JavaScript Techdegree Student 759 Points
    • JavaScript
    • JavaScript Arrays
    • Multidimensional Arrays
    • Build a Quiz Challenge – One Solution

    1 Answer

  • Samuel Kleos
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Samuel Kleos
    Front End Web Development Techdegree Student 13,728 Points

    My answers are always wrong.

    Posted December 5, 2022 7:20am by Samuel Kleos
    .a{fill-rule:evenodd;}techdegree
    Samuel Kleos
    Front End Web Development Techdegree Student 13,728 Points
    • JavaScript
    • JavaScript Arrays
    • Multidimensional Arrays
    • Build a Quiz Challenge – One Solution

    1 Answer

  • Micah Angelica Baguio
    Micah Angelica Baguio
    3,409 Points

    Build a Quiz Challenge

    Posted September 6, 2022 7:13am by Micah Angelica Baguio
    Micah Angelica Baguio
    3,409 Points
    • JavaScript
    • JavaScript Arrays
    • Multidimensional Arrays
    • Build a Quiz Challenge – One Solution

    1 Answer

  • sasha shveps
    sasha shveps
    842 Points

    why this doesnt work?

    Posted July 29, 2022 12:53pm by sasha shveps
    sasha shveps
    842 Points
    • JavaScript
    • JavaScript Arrays
    • Multidimensional Arrays
    • Build a Quiz Challenge – One Solution

    1 Answer

  • Michael Arasimowicz
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Michael Arasimowicz
    Full Stack JavaScript Techdegree Student 1,794 Points

    Build a Quiz 1 Solution

    Posted April 20, 2022 5:55am by Michael Arasimowicz
    .a{fill-rule:evenodd;}techdegree
    Michael Arasimowicz
    Full Stack JavaScript Techdegree Student 1,794 Points
    • JavaScript
    • JavaScript Arrays
    • Multidimensional Arrays
    • Build a Quiz Challenge – One Solution

    1 Answer

  • Hina K.
    Hina K.
    4,807 Points

    I interpreted the challenge differently. How can I make this code DRY?

    Posted March 25, 2022 4:15am by Hina K.
    Hina K.
    4,807 Points
    • JavaScript
    • JavaScript Arrays
    • Multidimensional Arrays
    • Build a Quiz Challenge – One Solution

    1 Answer

  • Naoki Yoshida
    Naoki Yoshida
    6,984 Points

    My answers are strings. ".toLowerCase" doesn't work.

    Posted January 22, 2022 8:18am by Naoki Yoshida
    Naoki Yoshida
    6,984 Points
    • JavaScript
    • JavaScript Arrays
    • Multidimensional Arrays
    • Build a Quiz Challenge – One Solution

    1 Answer

  • Alex Hort-Francis
    Alex Hort-Francis
    17,074 Points

    My solution

    Posted October 16, 2021 1:55pm by Alex Hort-Francis
    Alex Hort-Francis
    17,074 Points
    • JavaScript
    • JavaScript Arrays
    • Multidimensional Arrays
    • Build a Quiz Challenge – One Solution

    0 Answers

  • Paige Christensen
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Paige Christensen
    Data Analysis Techdegree Student 3,706 Points

    I am having an issue with my prompt displaying.

    Posted September 7, 2021 6:14pm by Paige Christensen
    .a{fill-rule:evenodd;}techdegree
    Paige Christensen
    Data Analysis Techdegree Student 3,706 Points
    • JavaScript
    • JavaScript Arrays
    • Multidimensional Arrays
    • Build a Quiz Challenge – One Solution

    1 Answer

  • ivan dolgonos
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    ivan dolgonos
    Full Stack JavaScript Techdegree Student 4,195 Points

    Unit 1 - Build a Quiz challenge

    Posted July 21, 2021 6:30pm by ivan dolgonos
    .a{fill-rule:evenodd;}techdegree
    ivan dolgonos
    Full Stack JavaScript Techdegree Student 4,195 Points
    • JavaScript
    • JavaScript Arrays
    • Multidimensional Arrays
    • Build a Quiz Challenge – One Solution

    1 Answer

  • Anica Bell
    PLUS
    Anica Bell
    Courses Plus Student 3,004 Points

    correctAnswers scope?

    Posted July 6, 2021 4:19pm by Anica Bell
    Anica Bell
    Courses Plus Student 3,004 Points
    • JavaScript
    • JavaScript Arrays
    • Multidimensional Arrays
    • Build a Quiz Challenge – One Solution

    3 Answers

  • Tamella Hajiyeva
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Tamella Hajiyeva
    Full Stack JavaScript Techdegree Student 6,678 Points

    Uncaught TypeError

    Posted June 21, 2021 8:47pm by Tamella Hajiyeva
    .a{fill-rule:evenodd;}techdegree
    Tamella Hajiyeva
    Full Stack JavaScript Techdegree Student 6,678 Points
    • JavaScript
    • JavaScript Arrays
    • Multidimensional Arrays
    • Build a Quiz Challenge – One Solution

    1 Answer

  • Clayton Bailey
    Clayton Bailey
    1,453 Points

    Tips and advice?

    Posted May 23, 2021 3:56am by Clayton Bailey
    Clayton Bailey
    1,453 Points
    • JavaScript
    • JavaScript Arrays
    • Multidimensional Arrays
    • Build a Quiz Challenge – One Solution

    1 Answer

  • Zowie Erickson
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Zowie Erickson
    Front End Web Development Techdegree Graduate 16,203 Points

    getting returned undefined sometimes

    Posted March 17, 2021 4:27pm by Zowie Erickson
    .a{fill-rule:evenodd;}techdegree seal-36
    Zowie Erickson
    Front End Web Development Techdegree Graduate 16,203 Points
    • JavaScript
    • JavaScript Arrays
    • Multidimensional Arrays
    • Build a Quiz Challenge – One Solution

    2 Answers

  • Cheryl Chao
    Cheryl Chao
    5,555 Points

    Why I get result of "Uncaught TypeError: Cannot read property '0' of undefined"

    Posted March 2, 2021 8:30am by Cheryl Chao
    Cheryl Chao
    5,555 Points
    • JavaScript
    • JavaScript Arrays
    • Multidimensional Arrays
    • Build a Quiz Challenge – One Solution

    1 Answer

  • Nicholas Smay
    Nicholas Smay
    14,768 Points

    How do I use the '.toUppercase' or '.toLowercase' to stop the correct answer from being case sensitive?

    Posted February 12, 2021 2:50pm by Nicholas Smay
    Nicholas Smay
    14,768 Points
    • JavaScript
    • JavaScript Arrays
    • Multidimensional Arrays
    • Build a Quiz Challenge – One Solution

    1 Answer

  • ja5on
    ja5on
    10,339 Points

    questions.length or just use 3.

    Posted January 25, 2021 8:33pm by ja5on
    ja5on
    10,339 Points
    • JavaScript
    • JavaScript Arrays
    • Multidimensional Arrays
    • Build a Quiz Challenge – One Solution

    1 Answer

  • Connor Acott
    Connor Acott
    7,572 Points

    Kind of a nit-picky question, but I was curious about best practices with variables.

    Posted January 16, 2021 6:20am by Connor Acott
    Connor Acott
    7,572 Points
    • JavaScript
    • JavaScript Arrays
    • Multidimensional Arrays
    • Build a Quiz Challenge – One Solution

    1 Answer

  • Muaaz Matwadia
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Muaaz Matwadia
    Full Stack JavaScript Techdegree Graduate 19,327 Points

    Loops

    Posted January 9, 2021 12:03pm by Muaaz Matwadia
    .a{fill-rule:evenodd;}techdegree seal-36
    Muaaz Matwadia
    Full Stack JavaScript Techdegree Graduate 19,327 Points
    • JavaScript
    • JavaScript Arrays
    • Multidimensional Arrays
    • Build a Quiz Challenge – One Solution

    1 Answer

  • Austin Schneider
    Austin Schneider
    4,919 Points

    My solution was working, then stopped working.

    Posted December 26, 2020 7:42pm by Austin Schneider
    Austin Schneider
    4,919 Points
    • JavaScript
    • JavaScript Arrays
    • Multidimensional Arrays
    • Build a Quiz Challenge – One Solution

    3 Answers

  • Daniel Alfaro
    PLUS
    Daniel Alfaro
    Courses Plus Student 11,938 Points

    Strict equality "===" doesn't recognize right answer

    Posted December 10, 2020 5:35pm by Daniel Alfaro
    Daniel Alfaro
    Courses Plus Student 11,938 Points
    • JavaScript
    • JavaScript Arrays
    • Multidimensional Arrays
    • Build a Quiz Challenge – One Solution

    1 Answer

  • Erin White
    Erin White
    2,383 Points

    Why can't I use a while loop for this challenge?

    Posted October 28, 2020 3:25pm by Erin White
    Erin White
    2,383 Points
    • JavaScript
    • JavaScript Arrays
    • Multidimensional Arrays
    • Build a Quiz Challenge – One Solution

    1 Answer

  • Tina Budzáková
    Tina Budzáková
    6,685 Points

    Why the questions are not popping up?

    Posted October 27, 2020 7:58pm by Tina Budzáková
    Tina Budzáková
    6,685 Points
    • JavaScript
    • JavaScript Arrays
    • Multidimensional Arrays
    • Build a Quiz Challenge – One Solution

    1 Answer

  • James Thompson
    James Thompson
    2,475 Points

    My solution to the challenge.

    Posted October 5, 2020 4:34am by James Thompson
    James Thompson
    2,475 Points
    • JavaScript
    • JavaScript Arrays
    • Multidimensional Arrays
    • Build a Quiz Challenge – One Solution

    1 Answer

  • Obe Juarez
    Obe Juarez
    6,357 Points

    Why does my code stop when i enter the right question?

    Posted September 15, 2020 4:12pm by Obe Juarez
    Obe Juarez
    6,357 Points
    • JavaScript
    • JavaScript Arrays
    • Multidimensional Arrays
    • Build a Quiz Challenge – One Solution

    1 Answer

  • Obe Juarez
    Obe Juarez
    6,357 Points

    When i prompt the questions, all of the questions i my array and answers pop up in every PROMPT box?

    Posted September 10, 2020 9:16pm by Obe Juarez
    Obe Juarez
    6,357 Points
    • JavaScript
    • JavaScript Arrays
    • Multidimensional Arrays
    • Build a Quiz Challenge – One Solution

    1 Answer

  • Ziyu Zhang
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Ziyu Zhang
    Front End Web Development Techdegree Student 7,739 Points

    Why doing this will not give me the right result?

    Posted July 25, 2020 4:52am by Ziyu Zhang
    .a{fill-rule:evenodd;}techdegree
    Ziyu Zhang
    Front End Web Development Techdegree Student 7,739 Points
    • JavaScript
    • JavaScript Arrays
    • Multidimensional Arrays
    • Build a Quiz Challenge – One Solution

    2 Answers

  • Embie Wong
    Embie Wong
    3,180 Points

    Why can’t I just do this?

    Posted July 7, 2020 4:50am by Embie Wong
    Embie Wong
    3,180 Points
    • JavaScript
    • JavaScript Arrays
    • Multidimensional Arrays
    • Build a Quiz Challenge – One Solution

    4 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