Computer Science, asked by tvisha60, 11 months ago

How can you set properties for an object?

Answers

Answered by Anonymous
2

Answer:

Adding New Properties

Adding New PropertiesYou can add new properties to an existing object by simply giving it a value.

Adding New PropertiesYou can add new properties to an existing object by simply giving it a value.Assume that the person object already exists - you can then give it new properties:..

Hope this helps u

Answered by ishayadav80
1

Explanation:

A function which serves as a getter for the property, or undefined if there is no getter. When the property is accessed, this function is called without arguments and with this set to the object through which the property is accessed (this may not be the object on which the property is defined due to inheritance). The return value will be used as the value of the property.

Defaults to undefined.

hope it help you

please mark me as brainlist

Similar questions