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.

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

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

  • 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
  • George Martinez
    George Martinez
    6,232 Points

    How to keep a variable as an integer in a constructor function?

    Posted September 2, 2017 6:34pm by George Martinez
    George Martinez
    6,232 Points
    • JavaScript
    • Object-Oriented JavaScript (2015)
    • Constructor Functions and Prototypes
    • Creating Multiple Instances with Constructors

    2 Answers

  • George Martinez
    George Martinez
    6,232 Points

    What is the difference between function chaining and method chaining?

    Posted August 22, 2017 10:57pm by George Martinez
    George Martinez
    6,232 Points
    • JavaScript
    • Object-Oriented JavaScript (2015)
    • Constructor Functions and Prototypes
    • Creating Multiple Instances with Constructors

    2 Answers

  • Gerry K
    Gerry K
    5,877 Points

    Just want to clarify the use of the Constructor function

    Posted June 28, 2017 6:14am by Gerry K
    Gerry K
    5,877 Points
    • JavaScript
    • Object-Oriented JavaScript (2015)
    • Constructor Functions and Prototypes
    • Creating Multiple Instances with Constructors

    2 Answers

  • Kristian Woods
    Kristian Woods
    23,414 Points

    Do I properly understand the use of the 'this' keyword in constructor functions?

    Posted June 19, 2017 9:48am by Kristian Woods
    Kristian Woods
    23,414 Points
    • JavaScript
    • Object-Oriented JavaScript (2015)
    • Constructor Functions and Prototypes
    • Creating Multiple Instances with Constructors

    1 Answer

  • Alina Antemir
    Alina Antemir
    10,185 Points

    What if I don't want the instance to have all properties of the prototype?

    Posted May 15, 2017 12:02pm by Alina Antemir
    Alina Antemir
    10,185 Points
    • JavaScript
    • Object-Oriented JavaScript (2015)
    • Constructor Functions and Prototypes
    • Creating Multiple Instances with Constructors

    2 Answers

  • alborz
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    alborz
    Full Stack JavaScript Techdegree Graduate 30,885 Points

    Does "this" always create an instance of an object?

    Posted December 17, 2016 4:57am by alborz
    .a{fill-rule:evenodd;}techdegree seal-36
    alborz
    Full Stack JavaScript Techdegree Graduate 30,885 Points
    • JavaScript
    • Object-Oriented JavaScript (2015)
    • Constructor Functions and Prototypes
    • Creating Multiple Instances with Constructors

    1 Answer

  • john larson
    john larson
    16,594 Points

    I got a "Bummer, quit cheating" on my objectives

    Posted February 22, 2016 8:22am by john larson
    john larson
    16,594 Points
    • JavaScript
    • Object-Oriented JavaScript (2015)
    • Constructor Functions and Prototypes
    • Creating Multiple Instances with Constructors

    3 Answers

  • liam johnshon
    PLUS
    liam johnshon
    Courses Plus Student 904 Points

    what the object in constructor function ?

    Posted February 8, 2016 6:08am by liam johnshon
    liam johnshon
    Courses Plus Student 904 Points
    • JavaScript
    • Object-Oriented JavaScript (2015)
    • Constructor Functions and Prototypes
    • Creating Multiple Instances with Constructors

    1 Answer

  • Esmobrander Ozpedelamo
    Esmobrander Ozpedelamo
    9,136 Points

    I don't understand why this is an instance of TodoListItem.

    Posted August 10, 2015 9:02pm by Esmobrander Ozpedelamo
    Esmobrander Ozpedelamo
    9,136 Points
    • JavaScript
    • Object-Oriented JavaScript (2015)
    • Constructor Functions and Prototypes
    • Creating Multiple Instances with Constructors

    4 Answers

  • Kashish Singal
    Kashish Singal
    3,368 Points

    Hi guys, I am having trouble understanding what "this.name = name;" means. What does each word do?

    Posted July 17, 2015 5:49am by Kashish Singal
    Kashish Singal
    3,368 Points
    • JavaScript
    • Object-Oriented JavaScript (2015)
    • Constructor Functions and Prototypes
    • Creating Multiple Instances with Constructors

    6 Answers

  • Tony Brackins
    Tony Brackins
    28,766 Points

    Constructor variables

    Posted July 3, 2015 7:20pm by Tony Brackins
    Tony Brackins
    28,766 Points
    • JavaScript
    • Object-Oriented JavaScript (2015)
    • Constructor Functions and Prototypes
    • Creating Multiple Instances with Constructors

    1 Answer

  • Fabio Silva
    Fabio Silva
    5,097 Points

    Constructor functions are like Classes, then?

    Posted July 3, 2015 3:35am by Fabio Silva
    Fabio Silva
    5,097 Points
    • JavaScript
    • Object-Oriented JavaScript (2015)
    • Constructor Functions and Prototypes
    • Creating Multiple Instances with Constructors

    2 Answers

  • Adiv Abramson
    Adiv Abramson
    6,919 Points

    How do you prevent an object from being instantiated if the call is syntactically valid?

    Posted June 24, 2015 2:50pm by Adiv Abramson
    Adiv Abramson
    6,919 Points
    • JavaScript
    • Object-Oriented JavaScript (2015)
    • Constructor Functions and Prototypes
    • Creating Multiple Instances with Constructors

    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