Can I use the syntax of my choice or not?

Tell us what’s happening:
Troll tester method.

Challenge description:

Using the syntax of your choice


The key-value pairs should be set using dot or bracket notation.

Describe your issue in detail here.

  **Your code so far**

let foods = {
apples: 25,
oranges: 32,
plums: 28

// Only change code below this line
foods = {...foods, bananas: 13, grapes: 35, strawberries: 27};
// Only change code above this line

  **Your browser information:**

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36 Edg/100.0.1185.50

Challenge: Add Key-Value Pairs to JavaScript Objects

Link to the challenge:

It is referring to dot or bracket notation syntax, not any syntax.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.