Everybody loves tea

Report a typo

Imagine that we have the menu object. You have to add a property to it: the key tea with the value of Earl Grey. How do you do that?

Hint

To access the property tea of the menu object in JavaScript, you can use either dot notation or bracket notation.

Enter a short text
___

Create a free account to access the full topic