mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-04-11 16:00:12 -04:00
chore(i18n,learn): processed translations (#55010)
This commit is contained in:
committed by
GitHub
parent
98d85ed664
commit
0f7b8cd3f4
@@ -1,6 +1,6 @@
|
||||
---
|
||||
id: 5664820f61c48e80c9fa476c
|
||||
title: Golf Code
|
||||
title: 골프 코드
|
||||
challengeType: 1
|
||||
videoUrl: 'https://scrimba.com/c/c9ykNUR'
|
||||
forumTopicId: 18195
|
||||
@@ -9,77 +9,77 @@ dashedName: golf-code
|
||||
|
||||
# --description--
|
||||
|
||||
In the game of Golf, each hole has a `par`, meaning, the average number of `strokes` a golfer is expected to make in order to sink the ball in the hole to complete the play. Depending on how far above or below `par` your `strokes` are, there is a different nickname.
|
||||
골프 게임에는 골프 선수가 홀에 공을 넣어 플레이를 완성하기 위해 할 것으로 기대되는 `strokes`의 평균 수를 의미하는 `par`가 각 홀마다 있습니다. `par`에서 `strokes`를 얼마나 더 쳤는지, 덜 쳤는지에 대한 별칭이 있습니다.
|
||||
|
||||
Your function will be passed `par` and `strokes` arguments. Return the correct string according to this table which lists the strokes in order of priority; top (highest) to bottom (lowest):
|
||||
함수는 `par`와 `strokes` 매개변수를 받습니다. 친 횟수를 우선순위(가장 높음에서 가장 낮음) 에 따라 나열한 아래 표에 대해 정확한 문자열을 반환하세요.
|
||||
|
||||
<table><thead><tr><th>Strokes</th><th>Return</th></tr></thead><tbody><tr><td>1</td><td>"Hole-in-one!"</td></tr><tr><td><= par - 2</td><td>"Eagle"</td></tr><tr><td>par - 1</td><td>"Birdie"</td></tr><tr><td>par</td><td>"Par"</td></tr><tr><td>par + 1</td><td>"Bogey"</td></tr><tr><td>par + 2</td><td>"Double Bogey"</td></tr><tr><td>>= par + 3</td><td>"Go Home!"</td></tr></tbody></table>
|
||||
<table><thead><tr><th>친 횟수</th><th>반환 값</th></tr></thead><tbody><tr><td>1</td><td>"Hole-in-one!"</td></tr><tr><td><= par - 2</td><td>"Eagle"</td></tr><tr><td>par - 1</td><td>"Birdie"</td></tr><tr><td>par</td><td>"Par"</td></tr><tr><td>par + 1</td><td>"Bogey"</td></tr><tr><td>par + 2</td><td>"Double Bogey"</td></tr><tr><td>>= par + 3</td><td>"Go Home!"</td></tr></tbody></table>
|
||||
|
||||
`par` and `strokes` will always be numeric and positive. We have added an array of all the names for your convenience.
|
||||
`par`와 `strokes`는 항상 양수의 숫자입니다. 당신의 편의를 위해 모든 이름 배열을 추가했습니다.
|
||||
|
||||
# --hints--
|
||||
|
||||
`golfScore(4, 1)` should return the string `Hole-in-one!`
|
||||
`golfScore(4, 1)`은 `Hole-in-one!` 문자열을 반환해야합니다.
|
||||
|
||||
```js
|
||||
assert(golfScore(4, 1) === 'Hole-in-one!');
|
||||
```
|
||||
|
||||
`golfScore(4, 2)` should return the string `Eagle`
|
||||
`golfScore(4, 2)`은 `Eagle` 문자열을 반환해야합니다.
|
||||
|
||||
```js
|
||||
assert(golfScore(4, 2) === 'Eagle');
|
||||
```
|
||||
|
||||
`golfScore(5, 2)` should return the string `Eagle`
|
||||
`golfScore(5, 2)`은 `Eagle` 문자열을 반환해야합니다.
|
||||
|
||||
```js
|
||||
assert(golfScore(5, 2) === 'Eagle');
|
||||
```
|
||||
|
||||
`golfScore(4, 3)` should return the string `Birdie`
|
||||
`golfScore(4, 3)`은 `Birdie` 문자열을 반환해야합니다.
|
||||
|
||||
```js
|
||||
assert(golfScore(4, 3) === 'Birdie');
|
||||
```
|
||||
|
||||
`golfScore(4, 4)` should return the string `Par`
|
||||
`golfScore(4, 4)`은 `Par` 문자열을 반환해야합니다.
|
||||
|
||||
```js
|
||||
assert(golfScore(4, 4) === 'Par');
|
||||
```
|
||||
|
||||
`golfScore(1, 1)` should return the string `Hole-in-one!`
|
||||
`golfScore(1, 1)`은 `Hole-in-one!` 문자열을 반환해야합니다.
|
||||
|
||||
```js
|
||||
assert(golfScore(1, 1) === 'Hole-in-one!');
|
||||
```
|
||||
|
||||
`golfScore(5, 5)` should return the string `Par`
|
||||
`golfScore(5, 5)`은 `Par` 문자열을 반환해야합니다.
|
||||
|
||||
```js
|
||||
assert(golfScore(5, 5) === 'Par');
|
||||
```
|
||||
|
||||
`golfScore(4, 5)` should return the string `Bogey`
|
||||
`golfScore(4, 5)`은 `Bogey` 문자열을 반환해야합니다.
|
||||
|
||||
```js
|
||||
assert(golfScore(4, 5) === 'Bogey');
|
||||
```
|
||||
|
||||
`golfScore(4, 6)` should return the string `Double Bogey`
|
||||
`golfScore(4, 6)`은 `Double Bogey` 문자열을 반환해야합니다.
|
||||
|
||||
```js
|
||||
assert(golfScore(4, 6) === 'Double Bogey');
|
||||
```
|
||||
|
||||
`golfScore(4, 7)` should return the string `Go Home!`
|
||||
`golfScore(4, 7)`은 `Go Home!` 문자열을 반환해야합니다.
|
||||
|
||||
```js
|
||||
assert(golfScore(4, 7) === 'Go Home!');
|
||||
```
|
||||
|
||||
`golfScore(5, 9)` should return the string `Go Home!`
|
||||
`golfScore(5, 9)`은 `Go Home!` 문자열을 반환해야합니다.
|
||||
|
||||
```js
|
||||
assert(golfScore(5, 9) === 'Go Home!');
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
id: 56533eb9ac21ba0edf2244e1
|
||||
title: Nesting For Loops
|
||||
title: For 루프 중첩하기
|
||||
challengeType: 1
|
||||
videoUrl: 'https://scrimba.com/c/cRn6GHM'
|
||||
forumTopicId: 18248
|
||||
@@ -9,7 +9,7 @@ dashedName: nesting-for-loops
|
||||
|
||||
# --description--
|
||||
|
||||
If you have a multi-dimensional array, you can use the same logic as the prior waypoint to loop through both the array and any sub-arrays. 여기 예시가 있습니다.
|
||||
다차원 배열이 있을 때, 이전에 언급된 것과 같은 논리를 사용하여 배열과 모든 하위 배열을 순환할 수 있습니다. 여기 예시가 있습니다.
|
||||
|
||||
```js
|
||||
const arr = [
|
||||
@@ -23,21 +23,21 @@ for (let i = 0; i < arr.length; i++) {
|
||||
}
|
||||
```
|
||||
|
||||
This outputs each sub-element in `arr` one at a time. Note that for the inner loop, we are checking the `.length` of `arr[i]`, since `arr[i]` is itself an array.
|
||||
이는 `arr`의 각 하위 요소를 한 번에 하나씩 출력합니다. 내부 루프에서는 `arr[i]`의 `.length`를 확인합니다. `arr[i]` 자체가 배열이기 때문입니다.
|
||||
|
||||
# --instructions--
|
||||
|
||||
Modify function `multiplyAll` so that it returns the product of all the numbers in the sub-arrays of `arr`.
|
||||
`multiplyAll` 함수를 수정해 `arr`의 하위 배열에 있는 모든 숫자의 곱을 반환하도록 하세요.
|
||||
|
||||
# --hints--
|
||||
|
||||
`multiplyAll([[1], [2], [3]])` should return `6`
|
||||
`multiplyAll([[1], [2], [3]])`은 `6`을 반환해야 합니다.
|
||||
|
||||
```js
|
||||
assert(multiplyAll([[1], [2], [3]]) === 6);
|
||||
```
|
||||
|
||||
`multiplyAll([[1, 2], [3, 4], [5, 6, 7]])` should return `5040`
|
||||
`multiplyAll([[1, 2], [3, 4], [5, 6, 7]])`은 `5040`을 반환해야 합니다.
|
||||
|
||||
```js
|
||||
assert(
|
||||
@@ -49,7 +49,7 @@ assert(
|
||||
);
|
||||
```
|
||||
|
||||
`multiplyAll([[5, 1], [0.2, 4, 0.5], [3, 9]])` should return `54`
|
||||
`multiplyAll([[5, 1], [0.2, 4, 0.5], [3, 9]])`은 `54`를 반환해야 합니다.
|
||||
|
||||
```js
|
||||
assert(
|
||||
|
||||
Reference in New Issue
Block a user