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: