Meal Maker: setter method

For step 8, in the .addDishToCourse ( ) method, it says to push the dish object to the appropriate array in _courses.

Instead of this._courses[courseName].push(dish) , if I wanted to use a setter method would it be

this._courses[courseName] = dish?

Yes. Then inside the setter use push.

Note: Do not return anything from a setter.