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

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

New No-Code Track! 🚀start learning today!

🌟 Dreaming of a bright future? 🎓 Ask about the Treehouse Scholarship program! 🚀

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

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

  • Treehouse Logo
  • Plans
    Chevron
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
  • Library
    Chevron
    • All Courses
    • Tracks
    • College Credit
  • Techdegree
    Chevron
    • Overview
    • Front End Development
    • Full Stack JavaScript
    • Data Analysis
    • UX Design
    • Python
  • Community
    Chevron
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
  • Resources
    Chevron
    • Career Toolbox
    • CodeForward
    • Free Treehouse Near Me
    • Jobs
    • Blog
    • Support
    • About
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks College Credit
  • Overview Front End Web Development Full Stack JavaScript Python Development Data Analysis UX Design
  • Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Career Toolbox CodeForward Free Treehouse Near Me Jobs Blog Support About
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • Android
      • • 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
    • Showing results for:
    • JavaScript
    • Object-Oriented JavaScript
    • Working with Classes in JavaScript
    • Creating a new class
    • Close
  • Patty Johnson
    Patty Johnson
    26,560 Points

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

    Posted on Aug 18, 2021 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 on Aug 12, 2021 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 on Jun 16, 2021 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 on Nov 18, 2020 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 on Aug 28, 2020 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 on May 12, 2020 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 on Dec 30, 2019 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 on Dec 26, 2019 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 on Apr 28, 2019 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 on Dec 17, 2018 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 on Dec 3, 2018 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 on Jun 8, 2018 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 on May 29, 2018 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 on May 11, 2018 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 on Apr 26, 2018 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.

    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
  • Affiliates
  • Perks
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
Terms & Conditions | Privacy

© 2025 Treehouse Island, Inc.