Skip to content

Commit cfbbe0b

Browse files
committed
[번역수정] Part1 5.5 배열과 메서드 - map 객체
1 parent 01cb914 commit cfbbe0b

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

  • 1-js/05-data-types/05-array-methods/7-map-objects

1-js/05-data-types/05-array-methods/7-map-objects/solution.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ usersMapped = [
2424
alert( usersMapped[0].id ); // 1
2525
alert( usersMapped[0].fullName ); // John Smith
2626
```
27-
화살표 함수 우측에 추가 괄호를 썼다는 점에 주목해 주세요.
27+
화살표 함수에서는 객체 리터럴을 괄호로 한 번 더 감싸야 한다는 점에 유의해 주세요.
2828

2929

3030
아래와 같이 괄호 없이 코드를 작성할 수 없습니다.
@@ -46,6 +46,4 @@ let usersMapped = users.map(user => *!*({*/!*
4646
}));
4747
```
4848

49-
이제 코드가 의도한 대로 동작합니다.
50-
51-
49+
이제 코드가 의도한 대로 동작합니다.

0 commit comments

Comments
 (0)