mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-04-12 10:00:39 -04:00
chore(i18n,learn): processed translations (#54766)
This commit is contained in:
committed by
GitHub
parent
7fc8b5ecbd
commit
541f01853c
@@ -1,6 +1,6 @@
|
||||
---
|
||||
id: 56533eb9ac21ba0edf2244d4
|
||||
title: Comparison with the Greater Than Operator
|
||||
title: 이상 연산자로 비교하기
|
||||
challengeType: 1
|
||||
videoUrl: 'https://scrimba.com/c/cp6GbH4'
|
||||
forumTopicId: 16786
|
||||
@@ -9,11 +9,11 @@ dashedName: comparison-with-the-greater-than-operator
|
||||
|
||||
# --description--
|
||||
|
||||
The greater than operator (`>`) compares the values of two numbers. If the number to the left is greater than the number to the right, it returns `true`. Otherwise, it returns `false`.
|
||||
이상 연산자 (`>`)는 두 숫자의 값을 비교합니다. 왼쪽에 있는 숫자가 오른쪽에 있는 숫자보다 크다면 `true`를 반환합니다. 그렇지 않으면 `false`를 반환합니다.
|
||||
|
||||
Like the equality operator, the greater than operator will convert data types of values while comparing.
|
||||
등호 연산자와 같이 이상 연산자는 비교하면서 값의 데이터 유형을 변환할 것입니다.
|
||||
|
||||
**Examples**
|
||||
**예시**
|
||||
|
||||
```js
|
||||
5 > 3 // true
|
||||
@@ -24,53 +24,53 @@ Like the equality operator, the greater than operator will convert data types of
|
||||
|
||||
# --instructions--
|
||||
|
||||
Add the greater than operator to the indicated lines so that the return statements make sense.
|
||||
반환문이 맞도록 지시된 줄에 이상 연산자를 추가하시오.
|
||||
|
||||
# --hints--
|
||||
|
||||
`testGreaterThan(0)` should return the string `10 or Under`
|
||||
`testGreaterThan(0)`는 문자열 `10 or Under`를 반환해야 합니다.
|
||||
|
||||
```js
|
||||
assert(testGreaterThan(0) === '10 or Under');
|
||||
```
|
||||
|
||||
`testGreaterThan(10)` should return the string `10 or Under`
|
||||
`testGreaterThan(10)`는 문자열 `10 or Under`을 반환해야 합니다.
|
||||
|
||||
```js
|
||||
assert(testGreaterThan(10) === '10 or Under');
|
||||
```
|
||||
|
||||
`testGreaterThan(11)` should return the string `Over 10`
|
||||
`testGreaterThan(11)`는 문자열 `Over 10`을 반환해야 합니다.
|
||||
|
||||
```js
|
||||
assert(testGreaterThan(11) === 'Over 10');
|
||||
```
|
||||
|
||||
`testGreaterThan(99)` should return the string `Over 10`
|
||||
`testGreaterThan(99)`는 문자열 `Over 10`을 반환해야 합니다.
|
||||
|
||||
```js
|
||||
assert(testGreaterThan(99) === 'Over 10');
|
||||
```
|
||||
|
||||
`testGreaterThan(100)` should return the string `Over 10`
|
||||
`testGreaterThan(100)`는 문자열 `Over 10`을 반환해야 합니다.
|
||||
|
||||
```js
|
||||
assert(testGreaterThan(100) === 'Over 10');
|
||||
```
|
||||
|
||||
`testGreaterThan(101)` should return the string `Over 100`
|
||||
`testGreaterThan(101)`는 문자열 `Over 100`을 반환해야 합니다.
|
||||
|
||||
```js
|
||||
assert(testGreaterThan(101) === 'Over 100');
|
||||
```
|
||||
|
||||
`testGreaterThan(150)` should return the string `Over 100`
|
||||
`testGreaterThan(150)`는 문자열 `Over 100`을 반환해야 합니다.
|
||||
|
||||
```js
|
||||
assert(testGreaterThan(150) === 'Over 100');
|
||||
```
|
||||
|
||||
You should use the `>` operator at least twice
|
||||
`>` 연산자를 적어도 두 번 사용해야 합니다.
|
||||
|
||||
```js
|
||||
assert(__helpers.removeJSComments(code).match(/val\s*>\s*('|")*\d+('|")*/g).length > 1);
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
id: 56533eb9ac21ba0edf2244b1
|
||||
title: Compound Assignment With Augmented Multiplication
|
||||
title: 곱셈를 추가해서 복합적으로 할당하기
|
||||
challengeType: 1
|
||||
videoUrl: 'https://scrimba.com/c/c83vrfa'
|
||||
forumTopicId: 16662
|
||||
@@ -9,13 +9,13 @@ dashedName: compound-assignment-with-augmented-multiplication
|
||||
|
||||
# --description--
|
||||
|
||||
The `*=` operator multiplies a variable by a number.
|
||||
`*=` 연산자는 변수에 숫자를 곱합니다.
|
||||
|
||||
```js
|
||||
myVar = myVar * 5;
|
||||
```
|
||||
|
||||
will multiply `myVar` by `5`. This can be rewritten as:
|
||||
위의 내용은 `myVar`에 `5`를 곱합니다. 이 내용은 다음과 같이 변환될 수 있습니다.
|
||||
|
||||
```js
|
||||
myVar *= 5;
|
||||
@@ -23,35 +23,35 @@ myVar *= 5;
|
||||
|
||||
# --instructions--
|
||||
|
||||
Convert the assignments for `a`, `b`, and `c` to use the `*=` operator.
|
||||
`a`, `b`, `c`에 각각 할당을 `*=` 연산자를 사용하도록 변경해 주세요.
|
||||
|
||||
# --hints--
|
||||
|
||||
`a` should equal `25`.
|
||||
`a`는 `25`와 같아야 합니다.
|
||||
|
||||
```js
|
||||
assert(a === 25);
|
||||
```
|
||||
|
||||
`b` should equal `36`.
|
||||
`b`는 `36`과 같아야 합니다.
|
||||
|
||||
```js
|
||||
assert(b === 36);
|
||||
```
|
||||
|
||||
`c` should equal `46`.
|
||||
`c`는 `46`과 같아야 합니다.
|
||||
|
||||
```js
|
||||
assert(c === 46);
|
||||
```
|
||||
|
||||
You should use the `*=` operator for each variable.
|
||||
각 변수에서 `*=` 연산자를 사용해야 합니다.
|
||||
|
||||
```js
|
||||
assert(__helpers.removeJSComments(code).match(/\*=/g).length === 3);
|
||||
```
|
||||
|
||||
You should not modify the code above the specified comment.
|
||||
지정된 코멘트 위의 코드를 변경하면 안됩니다.
|
||||
|
||||
```js
|
||||
assert(
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
id: cf1111c1c11feddfaeb6bdef
|
||||
title: Divide One Number by Another with JavaScript
|
||||
title: JavaScript에서 하나의 숫자를 다른 숫자로 나누기
|
||||
challengeType: 1
|
||||
videoUrl: 'https://scrimba.com/c/cqkbdAr'
|
||||
forumTopicId: 17566
|
||||
@@ -9,30 +9,30 @@ dashedName: divide-one-number-by-another-with-javascript
|
||||
|
||||
# --description--
|
||||
|
||||
We can also divide one number by another.
|
||||
한 숫자를 다른 숫자로 나누는 것도 가능합니다.
|
||||
|
||||
JavaScript uses the `/` symbol for division.
|
||||
JavaScript에서는 나누기 기호로 `/`를 사용합니다.
|
||||
|
||||
**Example**
|
||||
**예:**
|
||||
|
||||
```js
|
||||
const myVar = 16 / 2;
|
||||
```
|
||||
|
||||
`myVar` now has the value `8`.
|
||||
`myVar`의 값은 이제 `8`을 갖습니다.
|
||||
# --instructions--
|
||||
|
||||
Change the `0` so that the `quotient` is equal to `2`.
|
||||
`0`를 변경해서, `quotient`(몫) 이 `2`와 같도록 해주세요.
|
||||
|
||||
# --hints--
|
||||
|
||||
The variable `quotient` should be equal to 2.
|
||||
변수 `quotient`의 값이 2와 같아야 합니다.
|
||||
|
||||
```js
|
||||
assert(quotient === 2);
|
||||
```
|
||||
|
||||
You should use the `/` operator.
|
||||
`/` 연산자를 사용해야 합니다.
|
||||
|
||||
```js
|
||||
assert(/\d+\s*\/\s*\d+/.test(__helpers.removeJSComments(code)));
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
id: cf1111c1c11feddfaeb7bdef
|
||||
title: Nest one Array within Another Array
|
||||
title: 한 배열을 다른 배열 안에 중첩하기
|
||||
challengeType: 1
|
||||
videoUrl: 'https://scrimba.com/c/crZQZf8'
|
||||
forumTopicId: 18247
|
||||
@@ -9,21 +9,21 @@ dashedName: nest-one-array-within-another-array
|
||||
|
||||
# --description--
|
||||
|
||||
You can also nest arrays within other arrays, like below:
|
||||
아래와 같이, 당신은 배열들을 다른 배열들 안으로 감싸 넣을 수도 있습니다.
|
||||
|
||||
```js
|
||||
const teams = [["Bulls", 23], ["White Sox", 45]];
|
||||
```
|
||||
|
||||
This is also called a <dfn>multi-dimensional array</dfn>.
|
||||
이것을 <dfn>다차원 배열(multi-dimensional array)</dfn>이라고 부르기도 합니다.
|
||||
|
||||
# --instructions--
|
||||
|
||||
Create a nested array called `myArray`.
|
||||
`myArray`라는 이름의 중첩 배열을 하나 만드세요.
|
||||
|
||||
# --hints--
|
||||
|
||||
`myArray` should have at least one array nested within another array.
|
||||
`myArray`는 다른 배열 안에 적어도 한 개 이상의 중첩 배열을 가지고 있어야 합니다.
|
||||
|
||||
```js
|
||||
assert(Array.isArray(myArray) && myArray.some(Array.isArray));
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
id: 56533eb9ac21ba0edf2244bc
|
||||
title: Shopping List
|
||||
title: 쇼핑 리스트
|
||||
challengeType: 1
|
||||
videoUrl: 'https://scrimba.com/c/c9MEKHZ'
|
||||
forumTopicId: 18280
|
||||
@@ -9,37 +9,37 @@ dashedName: shopping-list
|
||||
|
||||
# --description--
|
||||
|
||||
Create a shopping list in the variable `myList`. The list should be a multi-dimensional array containing several sub-arrays.
|
||||
변수 `myList`에 쇼핑 리스트를 하나 만드세요. 리스트는 복수의 하위 배열들을 포함하고 있는 다차원 배열이어야 합니다.
|
||||
|
||||
The first element in each sub-array should contain a string with the name of the item. The second element should be a number representing the quantity i.e.
|
||||
각 서브 배열의 맨 처음 항목에는, 상품의 이름인 문자열을 가져야 합니다. 두번째 항목은 수량을 나타내는 숫자가 되어야 합니다.
|
||||
|
||||
```js
|
||||
["Chocolate Bar", 15]
|
||||
```
|
||||
|
||||
There should be at least 5 sub-arrays in the list.
|
||||
리스트에는 최소한 5개의 하위 배열들이 필요합니다.
|
||||
|
||||
# --hints--
|
||||
|
||||
`myList` should be an array.
|
||||
`myList`는 배열이어야 합니다.
|
||||
|
||||
```js
|
||||
assert(isArray);
|
||||
```
|
||||
|
||||
The first elements in each of your sub-arrays should all be strings.
|
||||
당신의 하위 배열들의 각각 맨 처음 항목들은 모두 문자열이어야 합니다.
|
||||
|
||||
```js
|
||||
assert(hasString);
|
||||
```
|
||||
|
||||
The second elements in each of your sub-arrays should all be numbers.
|
||||
당신의 하위 배열의 각 2번째 항목들은 모두 숫자여야 합니다.
|
||||
|
||||
```js
|
||||
assert(hasNumber);
|
||||
```
|
||||
|
||||
You should have at least 5 items in your list.
|
||||
당신은 적어도 리스트에 5개의 항목 이상을 가지고 있어야 합니다.
|
||||
|
||||
```js
|
||||
assert(count > 4);
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
id: bd7123c9c451eddfaeb5bdef
|
||||
title: Use Bracket Notation to Find the Last Character in a String
|
||||
title: 브라켓 표기법을 사용해서 문자열의 마지막 문자를 찾기
|
||||
challengeType: 1
|
||||
videoUrl: 'https://scrimba.com/c/cBZQGcv'
|
||||
forumTopicId: 18342
|
||||
@@ -9,34 +9,34 @@ dashedName: use-bracket-notation-to-find-the-last-character-in-a-string
|
||||
|
||||
# --description--
|
||||
|
||||
In order to get the last letter of a string, you can subtract one from the string's length.
|
||||
문자열의 마지막 문자를 얻기 위해서는, 문자열의 길이에서 하나를 빼서 얻을 수 있습니다.
|
||||
|
||||
For example, if `const firstName = "Ada"`, you can get the value of the last letter of the string by using `firstName[firstName.length - 1]`.
|
||||
예를 들어 `const firstName = "Ada"`의 경우에는 `firstName[firstName.length - 1]`를 사용해서 문자열의 마지막 문자의 값을 얻을 수 있습니다.
|
||||
|
||||
Example:
|
||||
예:
|
||||
|
||||
```js
|
||||
const firstName = "Ada";
|
||||
const lastLetter = firstName[firstName.length - 1];
|
||||
```
|
||||
|
||||
`lastLetter` would have a value of the string `a`.
|
||||
`lastLetter`의 값은 문자열 `a`가 될 것입니다.
|
||||
|
||||
# --instructions--
|
||||
|
||||
Use <dfn>bracket notation</dfn> to find the last character in the `lastName` variable.
|
||||
<dfn>브라켓 표기법</dfn>을 사용해서 `lastName` 변수의 마지막 문자를 찾으세요.
|
||||
|
||||
**Hint:** Try looking at the example above if you get stuck.
|
||||
**힌트:** 막혔을 때는 위의 예시를 다시 봐주세요.
|
||||
|
||||
# --hints--
|
||||
|
||||
`lastLetterOfLastName` should be the letter `e`.
|
||||
`lastLetterOfLastName` 문자 `e`가 되어야 합니다.
|
||||
|
||||
```js
|
||||
assert(lastLetterOfLastName === 'e');
|
||||
```
|
||||
|
||||
You should use `.length` to get the last letter.
|
||||
당신은 `.length`를 사용해서, 마지막 문자를 얻어야 합니다.
|
||||
|
||||
```js
|
||||
assert(__helpers.removeJSComments(code).match(/\.length/g).length > 0);
|
||||
|
||||
Reference in New Issue
Block a user