Im getting errors even though the code looks exactly like the one in the hint/solution section:
I cant understand what i did wrong , Please help me solve it.
let foods = {
apples: 25,
oranges: 32,
plums: 28
};
// change code below this line
foods["bananas"] = 13;
foods["grapes"] = 35;
foods["strawberries"] = 27;
// change code above this line
console.log(foods);
And the same thing is happening for the next challanges also , Please solve it
Your browser information:
User Agent is: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:66.0) Gecko/20100101 Firefox/66.0
.
Challenge: Add Key-Value Pairs to JavaScript Objects
Link to the challenge:
https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures/basic-data-structures/add-key-value-pairs-to-javascript-objects