Skip to main content

NOTICE: On Friday Nov 6, Workspaces will be temporarily unavailable for maintenance.

🚀 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
  • Patty Johnson
    Patty Johnson
    26,560 Points

    Question will not accept "this.gpa" - it says "Bummer: Unexpected token this"

    Posted August 18, 2021 8:58pm by Patty Johnson
    Patty Johnson
    26,560 Points
    • JavaScript
    • Object-Oriented JavaScript
    • Working with Classes in JavaScript
    • Creating a new class

    1 Answer

  • Mel Rojo
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Mel Rojo
    Full Stack JavaScript Techdegree Student 4,699 Points

    Declare an empty class called Student

    Posted August 12, 2021 10:51pm by Mel Rojo
    .a{fill-rule:evenodd;}techdegree
    Mel Rojo
    Full Stack JavaScript Techdegree Student 4,699 Points
    • JavaScript
    • Object-Oriented JavaScript
    • Working with Classes in JavaScript
    • Creating a new class

    3 Answers

  • Alonzo Delk
    Alonzo Delk
    6,991 Points

    Adding Properties

    Posted June 16, 2021 10:35pm by Alonzo Delk
    Alonzo Delk
    6,991 Points
    • JavaScript
    • Object-Oriented JavaScript
    • Working with Classes in JavaScript
    • Creating a new class

    2 Answers

  • Brendan Dzeguze
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Brendan Dzeguze
    Front End Web Development Techdegree Graduate 14,567 Points

    is there an error in the terminal?

    Posted November 18, 2020 10:20pm by Brendan Dzeguze
    .a{fill-rule:evenodd;}techdegree seal-36
    Brendan Dzeguze
    Front End Web Development Techdegree Graduate 14,567 Points
    • JavaScript
    • Object-Oriented JavaScript
    • Working with Classes in JavaScript
    • Creating a new class

    1 Answer

  • Welcome Julius
    Welcome Julius
    9,076 Points

    Declare an empty class called Student. i need help with this challenge

    Posted August 28, 2020 12:09am by Welcome Julius
    Welcome Julius
    9,076 Points
    • JavaScript
    • Object-Oriented JavaScript
    • Working with Classes in JavaScript
    • Creating a new class

    1 Answer

  • Ruonan Pi
    Ruonan Pi
    5,455 Points

    can't check work.

    Posted May 12, 2020 7:03pm by Ruonan Pi
    Ruonan Pi
    5,455 Points
    • JavaScript
    • Object-Oriented JavaScript
    • Working with Classes in JavaScript
    • Creating a new class

    1 Answer

  • SHAWNELL HARRISON
    SHAWNELL HARRISON
    16,282 Points

    Can someone guide me in the right directions?I would greatly appreciate it.

    Posted December 30, 2019 6:55pm by SHAWNELL HARRISON
    SHAWNELL HARRISON
    16,282 Points
    • JavaScript
    • Object-Oriented JavaScript
    • Working with Classes in JavaScript
    • Creating a new class

    1 Answer

  • Bethany Wallace
    Bethany Wallace
    3,833 Points

    I can't figure out this challenge! Add a parameter called gpa to the constructor method, and then create a gpa property.

    Posted December 26, 2019 5:17pm by Bethany Wallace
    Bethany Wallace
    3,833 Points
    • JavaScript
    • Object-Oriented JavaScript
    • Working with Classes in JavaScript
    • Creating a new class

    2 Answers

  • Nikki Kauffmann
    Nikki Kauffmann
    8,032 Points

    IDK What I'm doing wrong

    Posted April 28, 2019 8:30pm by Nikki Kauffmann
    Nikki Kauffmann
    8,032 Points
    • JavaScript
    • Object-Oriented JavaScript
    • Working with Classes in JavaScript
    • Creating a new class

    2 Answers

  • Alex Ng
    Alex Ng
    11,245 Points

    Why has the class I'm trying to create already been declared for the code challenge? (Object Oriented JavaScript)

    Posted December 17, 2018 2:19am by Alex Ng
    Alex Ng
    11,245 Points
    • JavaScript
    • Object-Oriented JavaScript
    • Working with Classes in JavaScript
    • Creating a new class

    1 Answer

  • John Yoder
    John Yoder
    5,130 Points

    Getting unexpected token for colon in the gpa property line

    Posted December 3, 2018 3:14pm by John Yoder
    John Yoder
    5,130 Points
    • JavaScript
    • Object-Oriented JavaScript
    • Working with Classes in JavaScript
    • Creating a new class

    2 Answers

  • Felex Chivave
    Felex Chivave
    7,288 Points

    help i cant create the needed infor here

    Posted June 8, 2018 11:17am by Felex Chivave
    Felex Chivave
    7,288 Points
    • JavaScript
    • Object-Oriented JavaScript
    • Working with Classes in JavaScript
    • Creating a new class

    1 Answer

  • Jason Berry
    Jason Berry
    5,180 Points

    Need help

    Posted May 29, 2018 8:27pm by Jason Berry
    Jason Berry
    5,180 Points
    • JavaScript
    • Object-Oriented JavaScript
    • Working with Classes in JavaScript
    • Creating a new class

    1 Answer

  • Tawanda Shawn Kuimba
    Tawanda Shawn Kuimba
    6,635 Points

    empty constructor

    Posted May 11, 2018 11:03am by Tawanda Shawn Kuimba
    Tawanda Shawn Kuimba
    6,635 Points
    • JavaScript
    • Object-Oriented JavaScript
    • Working with Classes in JavaScript
    • Creating a new class

    2 Answers

  • Bernard Chiyangwa
    Bernard Chiyangwa
    7,094 Points

    Declare an empty class called Student.

    Posted April 26, 2018 12:23pm by Bernard Chiyangwa
    Bernard Chiyangwa
    7,094 Points
    • JavaScript
    • Object-Oriented JavaScript
    • Working with Classes in JavaScript
    • Creating a new class

    1 Answer

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