DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
javascript assign
const obj = { a: 1 }; const copy = Object.assign({}, obj); console.log(copy); // { a: 1 }
Source by developer.mozilla.org #
PREVIOUS
NEXT
Tagged:
#javascript
#assign
ADD COMMENT
Topic
COMMENT
Name
1+5 =
Submit