-
-
Save YNSTakeru/397ca6662bb39f086437189faed05bef 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 myObj = {name:"太郎", score: 100} | |
let newMyObj = myObj | |
newMyObj.name = "二郎" | |
// myObjとnewMyObjの出力はどうなるか? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment