Skip to content

Commit 2ec4db1

Browse files
Added Japanese translation for object-keys
1 parent ef73c4e commit 2ec4db1

2 files changed

Lines changed: 15 additions & 15 deletions

File tree

problems/object-keys/problem_ja.md

Lines changed: 10 additions & 10 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+
JavaScriptはオブジェクトの利用可能なキーを全て列挙する方法を提供しています.これは,ループ処理によってオブジェクトに応じた値の操作に役立ちます.
22

3-
Here's an example of listing all object keys using the **Object.keys()**
4-
prototype method.
3+
これは **Object.keys()** を使って全てのオブジェクトのキーを列挙する例です.
54

65
```js
76
const car = {
@@ -14,13 +13,13 @@ 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']`
1817

19-
## The challenge:
18+
## やってみよう
2019

21-
Create a file named `object-keys.js`.
20+
`object-keys.js`ファイルを作りましょう.
2221

23-
In that file, define a variable named `car` like this:
22+
ファイルの中で,変数`car`を定義します.
2423

2524
```js
2625
const car = {
@@ -30,15 +29,16 @@ const car = {
3029
}
3130
```
3231

33-
Then define another variable named `keys` like this:
32+
そして,別の変数`keys`を定義します.
3433
```js
3534
const keys = Object.keys(car)
3635
```
3736

38-
Use `console.log()` to print the `keys` variable to the terminal.
37+
`console.log()`を使って,変数`keys` をターミナルに表示しましょう.
3938

40-
Check to see if your program is correct by running this command:
39+
次のコマンドを実行し,あなたのプログラムが正しく動くか確認しましょう.
4140

4241
```bash
4342
javascripting verify object-keys.js
4443
```
44+
Lines changed: 5 additions & 5 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()を使用することで,キーをうまく表示させることができました.オブジェクトのキーを列挙する必要があるときは,この方法を思い出してください.
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

11-
---
11+
---

0 commit comments

Comments
 (0)