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

AI can only take you so far. 🌟 Start with core skills in JavaScript, HTML, CSS, or 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

AI can only take you so far. 🌟 Start with core skills in JavaScript, HTML, CSS, or Python. 🚀

  • 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
      • • Vibe Coding
    • Showing results for:
    • JavaScript
    • Practice Getters and Setters in JavaScript
    • Practicing Getters and Setters
    • Close
  • naquanhayes
    naquanhayes
    11,250 Points

    why when we are learning anything in here we get the most simplest of examples, then when quizzed you leave the scope?

    Posted on Oct 24, 2023 by naquanhayes
    naquanhayes
    11,250 Points
    • JavaScript
    • Practice Getters and Setters in JavaScript
    • Practicing Getters and Setters
    • Creating a Setter Method Solution

    1 Answer

  • David Douglas
    David Douglas
    3,719 Points

    Getters for set properties

    Posted on Mar 18, 2023 by David Douglas
    David Douglas
    3,719 Points
    • JavaScript
    • Practice Getters and Setters in JavaScript
    • Practicing Getters and Setters
    • Creating a Setter Method Solution

    1 Answer

  • Thristen Jones
    Thristen Jones
    2,824 Points

    Calculating area?

    Posted on Jul 2, 2022 by Thristen Jones
    Thristen Jones
    2,824 Points
    • JavaScript
    • Practice Getters and Setters in JavaScript
    • Practicing Getters and Setters
    • Practice Creating and Calling a Setter Method

    1 Answer

  • Thristen Jones
    Thristen Jones
    2,824 Points

    I'm confused

    Posted on Jul 2, 2022 by Thristen Jones
    Thristen Jones
    2,824 Points
    • JavaScript
    • Practice Getters and Setters in JavaScript
    • Practicing Getters and Setters
    • Practice Creating and Calling a Setter Method

    1 Answer

  • Thristen Jones
    Thristen Jones
    2,824 Points

    The question is asking me to create an array called areas but when i do, the message error tells me i cant create one

    Posted on Jul 1, 2022 by Thristen Jones
    Thristen Jones
    2,824 Points
    • JavaScript
    • Practice Getters and Setters in JavaScript
    • Practicing Getters and Setters
    • Practice Creating and Accessing a Getter method

    1 Answer

  • Thristen Jones
    Thristen Jones
    2,824 Points

    I dont undertstand what im doing wrong

    Posted on Jul 1, 2022 by Thristen Jones
    Thristen Jones
    2,824 Points
    • JavaScript
    • Practice Getters and Setters in JavaScript
    • Practicing Getters and Setters
    • Practice Creating and Accessing a Getter method

    1 Answer

  • Oscar Gonzalez
    Oscar Gonzalez
    7,113 Points

    Unexpected token:

    Posted on Apr 11, 2022 by Oscar Gonzalez
    Oscar Gonzalez
    7,113 Points
    • JavaScript
    • Practice Getters and Setters in JavaScript
    • Practicing Getters and Setters
    • Practice Creating and Calling a Setter Method

    1 Answer

  • Swan The Human
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Swan The Human
    Full Stack JavaScript Techdegree Student 19,338 Points

    Should the getter for the setter be before the setter or after?

    Posted on Feb 14, 2022 by Swan The Human
    .a{fill-rule:evenodd;}techdegree
    Swan The Human
    Full Stack JavaScript Techdegree Student 19,338 Points
    • JavaScript
    • Practice Getters and Setters in JavaScript
    • Practicing Getters and Setters
    • Creating a Setter Method Solution

    1 Answer

  • Keytron Brown
    Keytron Brown
    15,828 Points

    Rect.1 is not defined error

    Posted on Sep 22, 2021 by Keytron Brown
    Keytron Brown
    15,828 Points
    • JavaScript
    • Practice Getters and Setters in JavaScript
    • Practicing Getters and Setters
    • Practice Creating and Accessing a Getter method

    1 Answer

  • Ubaid Eusufzai
    PLUS
    Ubaid Eusufzai
    Courses Plus Student 9,621 Points

    Even after reading the solution, it failed

    Posted on Aug 18, 2021 by Ubaid Eusufzai
    Ubaid Eusufzai
    Courses Plus Student 9,621 Points
    • JavaScript
    • Practice Getters and Setters in JavaScript
    • Practicing Getters and Setters
    • Practice Creating and Calling a Setter Method

    2 Answers

  • Amy Tomey
    Amy Tomey
    12,847 Points

    Frustrated... even when I copied and pasted the solution for # 1... I got an error. Bummer: Unexpected identifier

    Posted on Jun 4, 2021 by Amy Tomey
    Amy Tomey
    12,847 Points
    • JavaScript
    • Practice Getters and Setters in JavaScript
    • Practicing Getters and Setters
    • Practice Creating and Accessing a Getter method

    2 Answers

  • Joshua Graber
    Joshua Graber
    11,785 Points

    let vs. const

    Posted on May 28, 2021 by Joshua Graber
    Joshua Graber
    11,785 Points
    • JavaScript
    • Practice Getters and Setters in JavaScript
    • Practicing Getters and Setters
    • Creating a Getter Solution

    2 Answers

  • Kaleshe Alleyne-Vassel
    Kaleshe Alleyne-Vassel
    8,466 Points

    Having a hard time figuring out what is being asked here

    Posted on Apr 22, 2020 by Kaleshe Alleyne-Vassel
    Kaleshe Alleyne-Vassel
    8,466 Points
    • JavaScript
    • Practice Getters and Setters in JavaScript
    • Practicing Getters and Setters
    • Practice Creating and Calling a Setter Method

    1 Answer

  • Stheven Cabral
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Stheven Cabral
    Full Stack JavaScript Techdegree Graduate 29,854 Points

    Practicing Setters

    Posted on Mar 3, 2020 by Stheven Cabral
    .a{fill-rule:evenodd;}techdegree seal-36
    Stheven Cabral
    Full Stack JavaScript Techdegree Graduate 29,854 Points
    • JavaScript
    • Practice Getters and Setters in JavaScript
    • Practicing Getters and Setters
    • Practice Creating and Calling a Setter Method

    2 Answers

  • Stheven Cabral
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Stheven Cabral
    Full Stack JavaScript Techdegree Graduate 29,854 Points

    Backing Property

    Posted on Mar 3, 2020 by Stheven Cabral
    .a{fill-rule:evenodd;}techdegree seal-36
    Stheven Cabral
    Full Stack JavaScript Techdegree Graduate 29,854 Points
    • JavaScript
    • Practice Getters and Setters in JavaScript
    • Practicing Getters and Setters
    • Practice Creating and Calling a Setter Method

    1 Answer

  • Michael Slattery
    PLUS
    Michael Slattery
    Courses Plus Student 4,333 Points

    why won't the challenge 2 Question of practice getters and setters pass me even though I am simply copying in the answer

    Posted on May 8, 2019 by Michael Slattery
    Michael Slattery
    Courses Plus Student 4,333 Points
    • JavaScript
    • Practice Getters and Setters in JavaScript
    • Practicing Getters and Setters
    • Creating a Setter Method Solution

    2 Answers

  • Kim Dallas
    Kim Dallas
    11,461 Points

    what is wrong with this?

    Posted on Feb 13, 2019 by Kim Dallas
    Kim Dallas
    11,461 Points
    • JavaScript
    • Practice Getters and Setters in JavaScript
    • Practicing Getters and Setters
    • Practice Creating and Calling a Setter Method

    1 Answer

  • Van Jordan
    Van Jordan
    3,350 Points

    Setter method not defining the area property

    Posted on Dec 17, 2018 by Van Jordan
    Van Jordan
    3,350 Points
    • JavaScript
    • Practice Getters and Setters in JavaScript
    • Practicing Getters and Setters
    • Practice Creating and Calling a Setter Method

    0 Answers

  • richi richi
    richi richi
    552 Points

    Practice Getters and Setters in JavaScript

    Posted on Dec 9, 2018 by richi richi
    richi richi
    552 Points
    • JavaScript
    • Practice Getters and Setters in JavaScript
    • Practicing Getters and Setters
    • Practice Creating and Accessing a Getter method

    4 Answers

  • BEAU WITKA
    BEAU WITKA
    20,594 Points

    Typo

    Posted on Nov 18, 2018 by BEAU WITKA
    BEAU WITKA
    20,594 Points
    • JavaScript
    • Practice Getters and Setters in JavaScript
    • Practicing Getters and Setters
    • Creating a Getter Solution

    2 Answers

  • andreavelayo
    andreavelayo
    8,724 Points

    what is wrong with my code. (Getter)

    Posted on Nov 13, 2018 by andreavelayo
    andreavelayo
    8,724 Points
    • JavaScript
    • Practice Getters and Setters in JavaScript
    • Practicing Getters and Setters
    • Practice Creating and Accessing a Getter method

    1 Answer

  • George Neureuther
    George Neureuther
    8,625 Points

    create an array where? in the class? In the main part of the js file? in the get method?

    Posted on Oct 26, 2018 by George Neureuther
    George Neureuther
    8,625 Points
    • JavaScript
    • Practice Getters and Setters in JavaScript
    • Practicing Getters and Setters
    • Practice Creating and Accessing a Getter method

    1 Answer

  • Jan Oberreiter
    Jan Oberreiter
    78,020 Points

    still cannot solve the second question?

    Posted on Oct 18, 2018 by Jan Oberreiter
    Jan Oberreiter
    78,020 Points
    • JavaScript
    • Practice Getters and Setters in JavaScript
    • Practicing Getters and Setters
    • Practice Creating and Calling a Setter Method

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

© 2025 Treehouse Island, Inc.