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
  • tal Shnitzer
    PLUS
    tal Shnitzer
    Courses Plus Student 5,242 Points

    what "this" in the following code context

    Posted April 9, 2018 7:26pm by tal Shnitzer
    tal Shnitzer
    Courses Plus Student 5,242 Points
    • JavaScript
    • Object-Oriented JavaScript (2015)
    • Prototypal Inheritance
    • Updating the Song Object

    2 Answers

  • Andrei Li
    Andrei Li
    34,486 Points

    What is primary function of call and create.Object?

    Posted December 12, 2017 1:33pm by Andrei Li
    Andrei Li
    34,486 Points
    • JavaScript
    • Object-Oriented JavaScript (2015)
    • Prototypal Inheritance
    • Updating the Song Object

    1 Answer

  • James Head
    James Head
    18,872 Points

    Great resource, explaining prototypes and prototype chains

    Posted September 30, 2017 1:33pm by James Head
    James Head
    18,872 Points
    • JavaScript
    • Object-Oriented JavaScript (2015)
    • Prototypal Inheritance
    • Updating the Song Object

    1 Answer

  • Roudy Antenor
    Roudy Antenor
    4,124 Points

    Why not just add the play() and stop() methods within the media prototype build? Why make them prototypes of media??

    Posted September 13, 2017 3:32pm by Roudy Antenor
    Roudy Antenor
    4,124 Points
    • JavaScript
    • Object-Oriented JavaScript (2015)
    • Prototypal Inheritance
    • Updating the Song Object

    1 Answer

  • Nicholas Gaerlan
    Nicholas Gaerlan
    9,501 Points

    So... I can just ignore all this until we cover 'class' and 'extends'???

    Posted August 30, 2017 6:48pm by Nicholas Gaerlan
    Nicholas Gaerlan
    9,501 Points
    • JavaScript
    • Object-Oriented JavaScript (2015)
    • Prototypal Inheritance
    • Updating the Song Object

    1 Answer

  • Peter Lu
    Peter Lu
    10,612 Points

    Song.prototype = Object.create(Media.prototype) question

    Posted August 24, 2017 7:10pm by Peter Lu
    Peter Lu
    10,612 Points
    • JavaScript
    • Object-Oriented JavaScript (2015)
    • Prototypal Inheritance
    • Updating the Song Object

    3 Answers

  • James Barrett
    James Barrett
    13,253 Points

    Cannot understand what is going on at all...Guidance?

    Posted October 27, 2016 4:35pm by James Barrett
    James Barrett
    13,253 Points
    • JavaScript
    • Object-Oriented JavaScript (2015)
    • Prototypal Inheritance
    • Updating the Song Object

    8 Answers

  • Anastasia Stojakova
    Anastasia Stojakova
    8,974 Points

    What is the name of the design patten described in the video?

    Posted October 20, 2016 11:47pm by Anastasia Stojakova
    Anastasia Stojakova
    8,974 Points
    • JavaScript
    • Object-Oriented JavaScript (2015)
    • Prototypal Inheritance
    • Updating the Song Object

    1 Answer

  • lokesh cherukuri
    lokesh cherukuri
    381 Points

    Cant we copy prototype by Song.prototype = Media.prototype

    Posted August 16, 2016 5:07am by lokesh cherukuri
    lokesh cherukuri
    381 Points
    • JavaScript
    • Object-Oriented JavaScript (2015)
    • Prototypal Inheritance
    • Updating the Song Object

    1 Answer

  • Daniel Nitu
    Daniel Nitu
    13,272 Points

    Explaining 'this' in Media.call();

    Posted July 30, 2016 3:04pm by Daniel Nitu
    Daniel Nitu
    13,272 Points
    • JavaScript
    • Object-Oriented JavaScript (2015)
    • Prototypal Inheritance
    • Updating the Song Object

    3 Answers

  • Graham O Connor
    Graham O Connor
    6,551 Points

    I just want to know where the mistake is in this code

    Posted July 5, 2016 8:52am by Graham O Connor
    Graham O Connor
    6,551 Points
    • JavaScript
    • Object-Oriented JavaScript (2015)
    • Prototypal Inheritance
    • Updating the Song Object

    1 Answer

  • Matthew Day
    Matthew Day
    6,740 Points

    Is the call method used only to access properties while prototype is primarily used to access other methods?

    Posted July 1, 2016 10:57pm by Matthew Day
    Matthew Day
    6,740 Points
    • JavaScript
    • Object-Oriented JavaScript (2015)
    • Prototypal Inheritance
    • Updating the Song Object

    1 Answer

  • Obaa Cobby
    Obaa Cobby
    9,337 Points

    If you really want to understand prototype/chain, this video can help: https://www.youtube.com/watch?v=7oNWNlMrkpc

    Posted May 17, 2016 12:05am by Obaa Cobby
    Obaa Cobby
    9,337 Points
    • JavaScript
    • Object-Oriented JavaScript (2015)
    • Prototypal Inheritance
    • Updating the Song Object

    8 Answers

  • Ronald Hunter
    Ronald Hunter
    17,474 Points

    So "This" is what is happening. ;)

    Posted April 26, 2016 9:44pm by Ronald Hunter
    Ronald Hunter
    17,474 Points
    • JavaScript
    • Object-Oriented JavaScript (2015)
    • Prototypal Inheritance
    • Updating the Song Object

    1 Answer

  • Sam Parkash
    Sam Parkash
    6,645 Points

    Is "this" the same as artist?

    Posted February 22, 2016 7:51am by Sam Parkash
    Sam Parkash
    6,645 Points
    • JavaScript
    • Object-Oriented JavaScript (2015)
    • Prototypal Inheritance
    • Updating the Song Object

    1 Answer

  • Erik Nuber
    Erik Nuber
    20,629 Points

    Aide for better understanding Object.create();

    Posted December 4, 2015 6:48pm by Erik Nuber
    Erik Nuber
    20,629 Points
    • JavaScript
    • Object-Oriented JavaScript (2015)
    • Prototypal Inheritance
    • Updating the Song Object

    2 Answers

  • Igor Yamshchykov
    Igor Yamshchykov
    24,397 Points

    Clarify the prototype chain

    Posted July 11, 2015 8:10pm by Igor Yamshchykov
    Igor Yamshchykov
    24,397 Points
    • JavaScript
    • Object-Oriented JavaScript (2015)
    • Prototypal Inheritance
    • Updating the Song Object

    2 Answers

  • Adiv Abramson
    Adiv Abramson
    6,919 Points

    Will JS one day have syntactic sugar equivalent to the Java method of specifying inheritance?

    Posted July 2, 2015 1:59pm by Adiv Abramson
    Adiv Abramson
    6,919 Points
    • JavaScript
    • Object-Oriented JavaScript (2015)
    • Prototypal Inheritance
    • Updating the Song Object

    3 Answers

  • Ammon Rock
    Ammon Rock
    4,457 Points

    Why do we not need to return 'this' from the Media constructor since we are not using the 'new' keyword?

    Posted July 2, 2015 7:45am by Ammon Rock
    Ammon Rock
    4,457 Points
    • JavaScript
    • Object-Oriented JavaScript (2015)
    • Prototypal Inheritance
    • Updating the Song Object

    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