Skip to content

Commit 528fc51

Browse files
OMEGA-YViolet-Bora-Lee
authored andcommitted
[오타수정]Part1 7.2 프로퍼티 getter와 setter
1 parent ffba8a0 commit 528fc51

File tree

1 file changed

+1
-2
lines changed
  • 1-js/07-object-properties/02-property-accessors

1 file changed

+1
-2
lines changed

1-js/07-object-properties/02-property-accessors/article.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
# 프로퍼티 getter와 setter
33

44
객체의 프로퍼티는 두 종류로 나뉩니다.
5-
There are two kinds of object properties.
65

76
첫 번째 종류는 *데이터 프로퍼티(data property)* 입니다. 지금까지 사용한 모든 프로퍼티는 데이터 프로퍼티입니다. 데이터 프로퍼티 조작 방법에 대해선 모두 알고 계실 것이라 생각합니다.
87

@@ -24,7 +23,7 @@ let obj = {
2423
};
2524
```
2625

27-
getter 메서드는 `obj.propName`을 사용해 프로퍼티를 읽으려고 할 때 실행되고, setter 메서드는 `obj.propNAme = value`으로 프로퍼티에 값을 할당하려 할 때 실행됩니다.
26+
getter 메서드는 `obj.propName`을 사용해 프로퍼티를 읽으려고 할 때 실행되고, setter 메서드는 `obj.propName = value`으로 프로퍼티에 값을 할당하려 할 때 실행됩니다.
2827

2928
프로퍼티 `name``surname`이 있는 객체 `user`를 만들어봅시다.
3029

0 commit comments

Comments
 (0)