Skip to content

Commit dfbc223

Browse files
[프로토타입 상속] 검색 알고리즘 문제 수정
1 parent 4c78d17 commit dfbc223

File tree

1 file changed

+1
-1
lines changed
  • 1-js/08-prototypes/01-prototype-inheritance/2-search-algorithm

1 file changed

+1
-1
lines changed

1-js/08-prototypes/01-prototype-inheritance/2-search-algorithm/task.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,5 @@ let pockets = {
2727
};
2828
```
2929

30-
1. `__proto__`를 사용해서, 프로퍼티 조회가 `pockets` -> `bed` -> `table` -> `head`의 경로를 따르도록 프로토타입을 할당하세요. 예를 들면, `pockets.pen``3`이어야만 합니다.(`table`에서 발견할 수 있습니다.) 그리고 `bed.glasses``1`이어야만 합니다.(`head`에서 발견할 수 있습니다.)
30+
1. `__proto__`를 사용해서, 프로퍼티 조회가 `pockets` -> `bed` -> `table` -> `head`의 경로를 따르도록 하세요. `pockets.pen``table`에 있는 `3`, `bed.glasses``head`에 있는 `1`이 되어야 합니다.
3131
2. `pockets.glasses``glasses`를 얻는 것이 빠를까요? 아니면 `head.glasses`로 얻는 것이 빠를까요? 필요하다면 벤치마크를 사용해 성능을 측정해 보세요.

0 commit comments

Comments
 (0)