mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-04-12 01:00:13 -04:00
chore(i18n,learn): processed translations (#54923)
This commit is contained in:
committed by
GitHub
parent
c2ad373b90
commit
0b16d2ce96
@@ -1,6 +1,6 @@
|
||||
---
|
||||
id: 56104e9e514f539506016a5c
|
||||
title: Iterate Odd Numbers With a For Loop
|
||||
title: For 루프로 홀수 순환하기
|
||||
challengeType: 1
|
||||
videoUrl: 'https://scrimba.com/c/cm8n7T9'
|
||||
forumTopicId: 18212
|
||||
@@ -9,9 +9,9 @@ dashedName: iterate-odd-numbers-with-a-for-loop
|
||||
|
||||
# --description--
|
||||
|
||||
For loops don't have to iterate one at a time. By changing our `final-expression`, we can count by even numbers.
|
||||
For 루프는 한 번에 하나만 순환할 필요가 없습니다. `final-expression` 변경하여 짝수로 세어 나갈 수 있습니다.
|
||||
|
||||
We'll start at `i = 0` and loop while `i < 10`. We'll increment `i` by 2 each loop with `i += 2`.
|
||||
`i = 0`에 시작하여 `i < 10`인 동안 루프를 순환할 것입니다. `i += 2`으로 매 순환하마다 2씩 `i`를 증가시킬 것입니다.
|
||||
|
||||
```js
|
||||
const ourArray = [];
|
||||
@@ -21,21 +21,21 @@ for (let i = 0; i < 10; i += 2) {
|
||||
}
|
||||
```
|
||||
|
||||
`ourArray` will now contain `[0, 2, 4, 6, 8]`. Let's change our `initialization` so we can count by odd numbers.
|
||||
`ourArray`는 이제 `[0, 2, 4, 6, 8]`를 포함할 것입니다. `initialization`를 변경하여 홀수로 세어 나갈 수 있습니다.
|
||||
|
||||
# --instructions--
|
||||
|
||||
Push the odd numbers from 1 through 9 to `myArray` using a `for` loop.
|
||||
`for` 루프로 `myArray`에 1부터 9 중 홀수를 추가하시오.
|
||||
|
||||
# --hints--
|
||||
|
||||
You should be using a `for` loop for this.
|
||||
이를 위해 `for` 루프를 사용해야 합니다.
|
||||
|
||||
```js
|
||||
assert(/for\s*\([^)]+?\)/.test(__helpers.removeJSComments(code)));
|
||||
```
|
||||
|
||||
`myArray` should equal `[1, 3, 5, 7, 9]`.
|
||||
`myArray`는 `[1, 3, 5, 7, 9]`와 같아야 합니다.
|
||||
|
||||
```js
|
||||
assert.deepEqual(myArray, [1, 3, 5, 7, 9]);
|
||||
|
||||
Reference in New Issue
Block a user