✨ Earn college credits in Cybersecurity, JS, HTML, CSS and 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

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

  • 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
    • Showing results for:
    • JavaScript
    • Object-Oriented JavaScript
    • Object Basics
    • Creating Object Literals
    • Close
  • Nakayla Lipsey
    Nakayla Lipsey
    3,930 Points

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

    Posted on Mar 29, 2023 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 on Feb 22, 2023 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 on Dec 29, 2021 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 on Sep 16, 2021 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 on Jul 25, 2021 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 on Jun 16, 2021 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 on May 19, 2021 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 on Mar 25, 2021 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 on Dec 11, 2020 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 on Oct 30, 2020 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 on Oct 30, 2020 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 on Aug 4, 2020 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 on Apr 25, 2020 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 on Mar 6, 2020 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 on Oct 24, 2019 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 on Oct 23, 2019 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 on Jul 12, 2019 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 on Jul 8, 2019 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 on Jun 4, 2019 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 on Oct 16, 2018 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 on Aug 20, 2018 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 on Jul 9, 2018 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 on Jun 10, 2018 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 on Jun 10, 2018 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 on Jun 3, 2018 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 on May 19, 2018 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 on May 5, 2018 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 on Apr 26, 2018 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 on Apr 26, 2018 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 on Apr 25, 2018 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.

    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.