In JavaScript, you can add a new property to an object by simply assigning a value to it with the _________ operator.

  • add
  • extend
  • assign
  • new
In JavaScript, you can add a new property to an object by simply assigning a value to it with the assign operator. The assign operator is used to add or update properties on an object. It's a common operation for dynamically working with objects and their properties in JavaScript.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *