문서의 선택한 두 판 사이의 차이를 보여줍니다.
| 양쪽 이전 판 이전 판 다음 판 | 이전 판 | ||
|
wiki:javascript:javascript_note:js_object_definitions [2021/04/29 12:39] emblim98 [Using the JavaScript Keyword new] |
wiki:javascript:javascript_note:js_object_definitions [2023/01/13 18:44] (현재) |
||
|---|---|---|---|
| 줄 197: | 줄 197: | ||
| \\ | \\ | ||
| <code javascript> | <code javascript> | ||
| + | let person = { firstName: " | ||
| + | let x = person; | ||
| + | x.age = 10; | ||
| + | |||
| + | document.getElementById(" | ||
| + | |||
| + | console.log(person); | ||
| + | console.log(x); | ||
| </ | </ | ||
| {{tag> | {{tag> | ||