Tell us what’s happening:
Describe your issue in detail here.
The code doesnt work every way i try it tells The definition of the foods
object should not be changed.
Helppp
Your code so far
let foods = {
apples: 25,
oranges: 32,
plums: 28
};
// Add new entries using dot notation
foods.bananas = 13;
foods.grapes = 35;
foods.strawberries = 27;
console.log(foods);
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36
Challenge Information:
Basic Data Structures - Add Key-Value Pairs to JavaScript Objects