이 레슨을 한국어로 번역하는 중입니다. 지금은 English 버전을 보고 계십니다.번역을 도와주세요

0%

본문으로 건너뛰기

Objects, arrays, and transactions

입문~30 분0/4 단계

Move from single values to a ledger

An object groups the fields that belong to one transaction. An array holds many transactions. Array methods let you transform that real structure instead of copying totals by hand.

The included rows are explicitly marked as practice data. Your job is to render them and derive income, expenses, and balance from the array.

안내

1

Use filter to select income transactions.

힌트: Filter where item.type === 'income'.

어디에 작성하나요?

// Use map to render rows and reduce to calculate totals.

8번째 줄에 작성하세요 — 그 주석 아래, 이미 추가한 코드 다음입니다.

2

Use reduce to total amountAgorot.

3

Render transaction rows with map and join.

4

Show income, expenses, and balance in #summary.

내 코드

html
8 줄
1
2
3
4
5
6
7
8

실시간 미리보기

실시간 미리보기