diff options
Diffstat (limited to 'files/ko/web')
-rw-r--r-- | files/ko/web/javascript/reference/global_objects/object/assign/index.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/files/ko/web/javascript/reference/global_objects/object/assign/index.html b/files/ko/web/javascript/reference/global_objects/object/assign/index.html index d5cadcce66..31d545dd4f 100644 --- a/files/ko/web/javascript/reference/global_objects/object/assign/index.html +++ b/files/ko/web/javascript/reference/global_objects/object/assign/index.html @@ -140,7 +140,7 @@ test();</pre> const o2 = { b: 2 }; const o3 = { c: 3 }; -<!-- const obj = Object.assign(o1, o2, o3); --> +const obj = Object.assign(o1, o2, o3); console.log(obj); // { a: 1, b: 2, c: 3 } console.log(o1); // { a: 1, b: 2, c: 3 }, 목표 객체 자체가 변경됨.</pre> |