Skip to main content

Notice: Workspaces are undergoing maintenance and are temporarily unavailable.

πŸš€ In our NEW AI Bootcamp you'll build a working app in 28 days, no experience required. Free to all subscription levels.

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

Join the Treehouse affiliate program and earn 25% recurring commission! πŸ€‘

  • 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
  • Nakayla Lipsey
    Nakayla Lipsey
    3,930 Points

    Add an empty method to the object literal called play().

    Posted March 29, 2023 6:48pm by Nakayla Lipsey
    Nakayla Lipsey
    3,930 Points
    • JavaScript
    • Object-Oriented JavaScript
    • Object Basics
    • Creating Object Literals

    1 Answer

  • Raul Crespo
    Raul Crespo
    5,721 Points

    I'm providing the key and the empty method to the object, but still getting an error "unexpected identifier"

    Posted February 22, 2023 5:41pm by Raul Crespo
    Raul Crespo
    5,721 Points
    • JavaScript
    • Object-Oriented JavaScript
    • Object Basics
    • Creating Object Literals

    1 Answer

  • menachem shemtov
    menachem shemtov
    7,144 Points

    I can't find an object literal called Play()

    Posted December 29, 2021 5:42am by menachem shemtov
    menachem shemtov
    7,144 Points
    • JavaScript
    • Object-Oriented JavaScript
    • Object Basics
    • Creating Object Literals

    1 Answer

  • Keytron Brown
    Keytron Brown
    15,828 Points

    empty method?

    Posted September 16, 2021 9:10pm by Keytron Brown
    Keytron Brown
    15,828 Points
    • JavaScript
    • Object-Oriented JavaScript
    • Object Basics
    • Creating Object Literals

    1 Answer

  • Jacquelyn Springs
    Jacquelyn Springs
    9,395 Points

    I placed it all like it was in the video and did it without the console.log

    Posted July 25, 2021 9:54am by Jacquelyn Springs
    Jacquelyn Springs
    9,395 Points
    • JavaScript
    • Object-Oriented JavaScript
    • Object Basics
    • Creating Object Literals

    1 Answer

  • Alonzo Delk
    Alonzo Delk
    6,991 Points

    how to do an object literal

    Posted June 16, 2021 12:27am by Alonzo Delk
    Alonzo Delk
    6,991 Points
    • JavaScript
    • Object-Oriented JavaScript
    • Object Basics
    • Creating Object Literals

    1 Answer

  • Kylie Soderblom
    Kylie Soderblom
    3,890 Points

    empty method. Using key play: doesn't work to do play: play(){}

    Posted May 19, 2021 12:49am by Kylie Soderblom
    Kylie Soderblom
    3,890 Points
    • JavaScript
    • Object-Oriented JavaScript
    • Object Basics
    • Creating Object Literals

    2 Answers

  • Alana Warson
    Alana Warson
    5,296 Points

    add an empty method to the object literal called play.

    Posted March 25, 2021 5:20pm by Alana Warson
    Alana Warson
    5,296 Points
    • JavaScript
    • Object-Oriented JavaScript
    • Object Basics
    • Creating Object Literals

    1 Answer

  • PAUL NANNEY
    PAUL NANNEY
    8,995 Points

    Basically, can somebody help me solve this, GOD bless, , b, PAUL JORDAN NANNEY

    Posted December 11, 2020 6:36pm by PAUL NANNEY
    PAUL NANNEY
    8,995 Points
    • JavaScript
    • Object-Oriented JavaScript
    • Object Basics
    • Creating Object Literals

    1 Answer

  • Fran ADP
    Fran ADP
    6,304 Points

    creating object literals challenge

    Posted October 30, 2020 10:31am by Fran ADP
    Fran ADP
    6,304 Points
    • JavaScript
    • Object-Oriented JavaScript
    • Object Basics
    • Creating Object Literals

    1 Answer

  • Maria McGovern
    Maria McGovern
    722 Points

    Missing initializer in const declaration

    Posted October 30, 2020 1:13am by Maria McGovern
    Maria McGovern
    722 Points
    • JavaScript
    • Object-Oriented JavaScript
    • Object Basics
    • Creating Object Literals

    1 Answer

  • Alexandru Pescaru
    Alexandru Pescaru
    6,410 Points

    can anyone hel me with yhis please! Add an empty method to the object literal called play().

    Posted August 4, 2020 5:54pm by Alexandru Pescaru
    Alexandru Pescaru
    6,410 Points
    • JavaScript
    • Object-Oriented JavaScript
    • Object Basics
    • Creating Object Literals

    2 Answers

  • Adam Kohler
    Adam Kohler
    1,970 Points

    Still not working. What does it mean the object is missing the method?

    Posted April 25, 2020 7:58pm by Adam Kohler
    Adam Kohler
    1,970 Points
    • JavaScript
    • Object-Oriented JavaScript
    • Object Basics
    • Creating Object Literals

    1 Answer

  • :) :((
    :) :((
    6,776 Points

    Please help i dont see the error on the challange :(

    Posted March 6, 2020 6:51pm by :) :((
    :) :((
    6,776 Points
    • JavaScript
    • Object-Oriented JavaScript
    • Object Basics
    • Creating Object Literals

    1 Answer

  • Carlos Campos
    Carlos Campos
    6,425 Points

    Not sure what im doing wrong, please help

    Posted October 24, 2019 9:47pm by Carlos Campos
    Carlos Campos
    6,425 Points
    • JavaScript
    • Object-Oriented JavaScript
    • Object Basics
    • Creating Object Literals

    1 Answer

  • Adil Ismaaeel
    Adil Ismaaeel
    9,438 Points

    Add an empty method to the object literal called play().

    Posted October 23, 2019 11:03am by Adil Ismaaeel
    Adil Ismaaeel
    9,438 Points
    • JavaScript
    • Object-Oriented JavaScript
    • Object Basics
    • Creating Object Literals

    2 Answers

  • Elizabeth Hinson
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Elizabeth Hinson
    Full Stack JavaScript Techdegree Graduate 15,852 Points

    Empty method for object literal

    Posted July 12, 2019 7:00pm by Elizabeth Hinson
    .a{fill-rule:evenodd;}techdegree seal-36
    Elizabeth Hinson
    Full Stack JavaScript Techdegree Graduate 15,852 Points
    • JavaScript
    • Object-Oriented JavaScript
    • Object Basics
    • Creating Object Literals

    1 Answer

  • Christopher Flores
    Christopher Flores
    6,898 Points

    ...is there a typo I'm not seeing? ...

    Posted July 8, 2019 6:49pm by Christopher Flores
    Christopher Flores
    6,898 Points
    • JavaScript
    • Object-Oriented JavaScript
    • Object Basics
    • Creating Object Literals

    1 Answer

  • Micol Bellantoni
    Micol Bellantoni
    498 Points

    Help with object oriented JavaScript

    Posted June 4, 2019 11:11am by Micol Bellantoni
    Micol Bellantoni
    498 Points
    • JavaScript
    • Object-Oriented JavaScript
    • Object Basics
    • Creating Object Literals

    1 Answer

  • Rhonda Goolsby
    Rhonda Goolsby
    6,992 Points

    I do not understand how to add an empty method to an object literal called play() to this exercise.

    Posted October 16, 2018 7:44pm by Rhonda Goolsby
    Rhonda Goolsby
    6,992 Points
    • JavaScript
    • Object-Oriented JavaScript
    • Object Basics
    • Creating Object Literals

    2 Answers

  • Franklyn Gregory
    Franklyn Gregory
    12,098 Points

    Add an empty method to the object literal called play().

    Posted August 20, 2018 8:58am by Franklyn Gregory
    Franklyn Gregory
    12,098 Points
    • JavaScript
    • Object-Oriented JavaScript
    • Object Basics
    • Creating Object Literals

    2 Answers

  • YooYoung Ko
    YooYoung Ko
    1,268 Points

    I don't know how to do this

    Posted July 9, 2018 10:14am by YooYoung Ko
    YooYoung Ko
    1,268 Points
    • JavaScript
    • Object-Oriented JavaScript
    • Object Basics
    • Creating Object Literals

    4 Answers

  • Brian Johnson
    seal-mask
    PLUS
    .a{fill-rule:evenodd;}techdegree seal-36
    Brian Johnson
    Front End Web Development Techdegree Graduate 20,818 Points

    Ok it is asking me to add an EMPTY METHOD to the object player1 called β€œplay()” didn’t I do this??

    Posted June 10, 2018 2:49pm by Brian Johnson
    .a{fill-rule:evenodd;}techdegree seal-36
    Brian Johnson
    Front End Web Development Techdegree Graduate 20,818 Points
    • JavaScript
    • Object-Oriented JavaScript
    • Object Basics
    • Creating Object Literals

    2 Answers

  • Brian Johnson
    seal-mask
    PLUS
    .a{fill-rule:evenodd;}techdegree seal-36
    Brian Johnson
    Front End Web Development Techdegree Graduate 20,818 Points

    What Am I doing wrong here? The system won't tell.

    Posted June 10, 2018 1:05pm by Brian Johnson
    .a{fill-rule:evenodd;}techdegree seal-36
    Brian Johnson
    Front End Web Development Techdegree Graduate 20,818 Points
    • JavaScript
    • Object-Oriented JavaScript
    • Object Basics
    • Creating Object Literals

    4 Answers

  • Su Deng
    Su Deng
    1,226 Points

    i dont know how to add an empty method to an object literal

    Posted June 3, 2018 12:04am by Su Deng
    Su Deng
    1,226 Points
    • JavaScript
    • Object-Oriented JavaScript
    • Object Basics
    • Creating Object Literals

    1 Answer

  • Susan Stufflebean
    Susan Stufflebean
    7,466 Points

    What am I doing wrong? It is telling me the value for inTurn should be true, that is what I have???

    Posted May 19, 2018 9:35pm by Susan Stufflebean
    Susan Stufflebean
    7,466 Points
    • JavaScript
    • Object-Oriented JavaScript
    • Object Basics
    • Creating Object Literals

    3 Answers

  • Mcmillion Zvemisha
    Mcmillion Zvemisha
    10,130 Points

    Add an empty method to the object literal called play().

    Posted May 5, 2018 11:59am by Mcmillion Zvemisha
    Mcmillion Zvemisha
    10,130 Points
    • JavaScript
    • Object-Oriented JavaScript
    • Object Basics
    • Creating Object Literals

    3 Answers

  • Stephan Hoeksema
    Stephan Hoeksema
    16,567 Points

    Add an empty method to the object literal called play(). WHat do you mean? player1.play()???

    Posted April 26, 2018 2:52pm by Stephan Hoeksema
    Stephan Hoeksema
    16,567 Points
    • JavaScript
    • Object-Oriented JavaScript
    • Object Basics
    • Creating Object Literals

    10 Answers

  • Bernard Chiyangwa
    Bernard Chiyangwa
    7,094 Points

    Challenge Task 1 of 2 Fill in the missing code for the object literal. To do

    Posted April 26, 2018 7:30am by Bernard Chiyangwa
    Bernard Chiyangwa
    7,094 Points
    • JavaScript
    • Object-Oriented JavaScript
    • Object Basics
    • Creating Object Literals

    4 Answers

  • Hilary Katsande
    Hilary Katsande
    9,045 Points

    please help

    Posted April 25, 2018 7:13pm by Hilary Katsande
    Hilary Katsande
    9,045 Points
    • JavaScript
    • Object-Oriented JavaScript
    • Object Basics
    • Creating Object Literals

    2 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