Created
June 21, 2016 02:41
-
-
Save nishinoshake/d54da39b55823dde79fca55a37c63bbf to your computer and use it in GitHub Desktop.
Javascriptにおける参照渡し
This file contains hidden or 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
プリミティブ型は値渡し。 | |
オブジェクトは参照渡しになる。 | |
関数の中でオブジェクトをいじったらもとのオブジェクトもかわる。 | |
値を渡してるわけじゃないので当たり前ですが・・・びっくり。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment