Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

renemane object key js

obj = { name: 'Bobo' } //key: value
obj.newName = obj.name // on object create new key name. Assign old value to this
delete obj.name //delete object with old key name
 
PREVIOUS NEXT
Tagged: #renemane #object #key #js
ADD COMMENT
Topic
Name
9+1 =