🤑 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

  • 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
  • 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.

    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.