-
-
Save MichaelCharles/f0186866cf696f4fd87f10b1fdd8eefe to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let person = { name: '太郎', age: 20 }; | |
let copiedPerson = { ...person, name: '次郎' }; | |
console.log(copiedPerson); // { name: '次郎', age: 20 } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment