JS

Objects in JavaScript - Methods used to add a new ...

1.

Which of the following methods is used to add a new property to an object in JavaScript?

Object.assign()

Object.defineProperty()

Object.create()

Object.keys()

1 / 30

Next