javascript const point = { x: 10, y: 20 }; point.y = 10; console.log(point); The code modifies the y property of the point object to 10, resulting in { x: 10, y: 10 }.
5.
Which statement best describes the behavior of a constant object in JavaScript?
javascript const person = { name: 'John', age: 30 }; person.address = '123 Main St'; The code adds the address property to the person object, resulting in 3 properties.
8.
Which of the following will cause an error when used with a constant object in JavaScript?