JS: Create Property

By Xah Lee. Date: . Last updated: .

Create Property When Object is Created

Add Property

New properties can be added to a existing object. If the property already exist, it's modified. Here's the ways:

JavaScript, Property