JavaScript Practice Object Basics in JavaScript Practicing Object Basics Practice Adding a Method to an Object Literal

Practice objects problem [SOLVED]

Bummer: phraseArray is not defined

I never even referenced to phaseArray in my code :confused:

Can someone give a hand? Thanks! ~Alex

const myString = {
  string: "Programming with Treehouse is fun!",
  countWords: function() {
    return this.string.split(' ').length;
Ashley Boucher
Ashley Boucher
Treehouse Teacher

Hey Alexander, good job catching this - try it again now!

It works now, thanks!