Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

add property with value in js

var myObject = {
    sProp: 'some string value',
    numProp: 2,
    bProp: false
};
Source by www.dyn-web.com #
 
PREVIOUS NEXT
Tagged: #add #property #js
ADD COMMENT
Topic
Name
3+4 =