Skip to content

Commit e2fb8de

Browse files
authored
Merge pull request #376 from workshopper/translate-object-keys-ko
Complete the Korean translation of Object Keys
2 parents e9454f0 + 1b8f12e commit e2fb8de

3 files changed

Lines changed: 14 additions & 15 deletions

File tree

‎i18n/ko.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
, "LOOPING THROUGH ARRAYS": "배열을 루프하기"
1717
, "OBJECTS": "객체"
1818
, "OBJECT PROPERTIES": "객체 속성"
19+
, "OBJECT KEYS": "객체 키"
1920
, "FUNCTIONS": "함수"
2021
, "FUNCTION ARGUMENTS": "함수 인자"
2122
, "SCOPE": "스코프"

‎problems/object-keys/problem_ko.md‎

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
JavaScript provides a native way of listing all the available keys of an object. This can be helpful for looping through all the properties of an object and manipulating their values accordingly.
1+
자바스크립트에서는 `Object.keys()`로 객체의 키를 배열로 가져올 수 있습니다. 이 배열을 순회하면 각 키에 해당하는 속성값을 읽거나 바꿀 수 있습니다.
22

3-
Here's an example of listing all object keys using the **Object.keys()**
4-
prototype method.
3+
다음 예제는 자동차를 나타내는 객체에서 키를 가져옵니다.
54

65
```js
76
const car = {
@@ -14,13 +13,11 @@ const keys = Object.keys(car)
1413
console.log(keys)
1514
```
1615

17-
The above code will print an array of strings, where each string is a key in the car object. `['make', 'model', 'year']`
16+
위 코드는 `['make', 'model', 'year']`를 출력합니다. 배열의 각 문자열은 `car` 객체의 키입니다.
1817

19-
## The challenge:
18+
## 도전 과제
2019

21-
Create a file named `object-keys.js`.
22-
23-
In that file, define a variable named `car` like this:
20+
`object-keys.js` 파일을 만드세요. 파일 안에 다음과 같이 `car` 변수를 선언하세요.
2421

2522
```js
2623
const car = {
@@ -30,14 +27,15 @@ const car = {
3027
}
3128
```
3229

33-
Then define another variable named `keys` like this:
30+
이어서 `keys` 변수를 선언하고 `car`의 키를 저장하세요.
31+
3432
```js
3533
const keys = Object.keys(car)
3634
```
3735

38-
Use `console.log()` to print the `keys` variable to the terminal.
36+
`console.log()`로 `keys`를 터미널에 출력하세요.
3937

40-
Check to see if your program is correct by running this command:
38+
다음 명령을 실행해 프로그램이 올바르게 동작하는지 확인하세요.
4139

4240
```bash
4341
javascripting verify object-keys.js
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
---
22

3-
# CORRECT.
3+
# 정답입니다!
44

5-
Good job using the Object.keys() prototype method. Remember to use it when you need to list the keys of an object.
5+
`Object.keys(car)`로 자동차 객체의 키를 배열에 담았습니다. 다른 객체의 키가 필요할 때도 같은 메서드를 사용할 수 있습니다.
66

7-
The next challenge is all about **functions**.
7+
다음 과제는 **함수**에 관한 것입니다.
88

9-
Run `javascripting` in the console to choose the next challenge.
9+
터미널에서 `javascripting`을 실행해 다음 과제를 선택하세요.
1010

1111
---

0 commit comments

Comments
 (0)