mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-04-12 01:00:13 -04:00
chore(i18n,learn): processed translations (#55161)
This commit is contained in:
committed by
GitHub
parent
1a5c86d4dc
commit
f0386106d4
@@ -1,6 +1,6 @@
|
||||
---
|
||||
id: cf1391c1c11feddfaeb4bdef
|
||||
title: Create Decimal Numbers with JavaScript
|
||||
title: 자바스크립트에서 소수 생성하기
|
||||
challengeType: 1
|
||||
videoUrl: 'https://scrimba.com/c/ca8GEuW'
|
||||
forumTopicId: 16826
|
||||
@@ -9,23 +9,23 @@ dashedName: create-decimal-numbers-with-javascript
|
||||
|
||||
# --description--
|
||||
|
||||
We can store decimal numbers in variables too. Decimal numbers are sometimes referred to as <dfn>floating point</dfn> numbers or <dfn>floats</dfn>.
|
||||
변수에 소수를 저장할 수도 있습니다. 소수는 <dfn>부동소수점을 가지는 수</dfn> 또는 <dfn>float</dfn>이라고 부를 수도 있습니다.
|
||||
|
||||
**Note:** when you compute numbers, they are computed with finite precision. Operations using floating points may lead to different results than the desired outcome. If you are getting one of these results, open a topic on the <a href="https://forum.freecodecamp.org/" target="_blank" rel="noopener noreferrer nofollow">freeCodeCamp forum</a>.
|
||||
|
||||
# --instructions--
|
||||
|
||||
Create a variable `myDecimal` and give it a decimal value with a fractional part (e.g. `5.7`).
|
||||
변수 `myDecimal`을 생성해서, 정수 부분과 소수 부분으로 나뉘어진 실수(예를 들면 `5.7`)을 할당해 주세요.
|
||||
|
||||
# --hints--
|
||||
|
||||
`myDecimal` should be a number.
|
||||
`myDecimal`은 숫자여야 합니다.
|
||||
|
||||
```js
|
||||
assert(typeof myDecimal === 'number');
|
||||
```
|
||||
|
||||
`myDecimal` should have a decimal point
|
||||
`myDecimal`은 소수점 자리를 가지고 있어야 합니다.
|
||||
|
||||
```js
|
||||
assert(myDecimal % 1 != 0);
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
id: 5690307fddb111c6084545d7
|
||||
title: Logical Order in If Else Statements
|
||||
title: If Else문의 논리적 순서
|
||||
challengeType: 1
|
||||
videoUrl: 'https://scrimba.com/c/cwNvMUV'
|
||||
forumTopicId: 18228
|
||||
@@ -9,13 +9,13 @@ dashedName: logical-order-in-if-else-statements
|
||||
|
||||
# --description--
|
||||
|
||||
Order is important in `if`, `else if` statements.
|
||||
`if`, `else if`문에서 순서는 중요합니다.
|
||||
|
||||
The function is executed from top to bottom so you will want to be careful of what statement comes first.
|
||||
함수는 위에서부터 아래로 실행되기 때문에 어떠한 문장이 먼저 오는지 주의해야 합니다.
|
||||
|
||||
Take these two functions as an example.
|
||||
이 두가지 함수를 예로 들어 보겠습니다.
|
||||
|
||||
Here's the first:
|
||||
첫번째는 다음과 같습니다.
|
||||
|
||||
```js
|
||||
function foo(x) {
|
||||
@@ -29,7 +29,7 @@ function foo(x) {
|
||||
}
|
||||
```
|
||||
|
||||
And the second just switches the order of the statements:
|
||||
두번째는 단순히 문장의 순서만 바꾼 것 입니다.
|
||||
|
||||
```js
|
||||
function bar(x) {
|
||||
@@ -43,34 +43,34 @@ function bar(x) {
|
||||
}
|
||||
```
|
||||
|
||||
While these two functions look nearly identical if we pass a number to both we get different outputs.
|
||||
두 함수는 거의 동일하게 보이지만, 함수에 숫자를 넣으면 다른 결과를 얻게 됩니다.
|
||||
|
||||
```js
|
||||
foo(0)
|
||||
bar(0)
|
||||
```
|
||||
|
||||
`foo(0)` will return the string `Less than one`, and `bar(0)` will return the string `Less than two`.
|
||||
`foo(0)`는 `Less than one` 문자열을 반환할 것이고, `bar(0)`는 `Less than two`문자열을 반환할 것 입니다.
|
||||
|
||||
# --instructions--
|
||||
|
||||
Change the order of logic in the function so that it will return the correct statements in all cases.
|
||||
함수의 논리 순서를 변경하여 항상 정확한 문장을 반환하도록 합니다.
|
||||
|
||||
# --hints--
|
||||
|
||||
`orderMyLogic(4)` should return the string `Less than 5`
|
||||
`orderMyLogic(4)`는 `Less than 5`문자열을 반환해야 합니다.
|
||||
|
||||
```js
|
||||
assert(orderMyLogic(4) === 'Less than 5');
|
||||
```
|
||||
|
||||
`orderMyLogic(6)` should return the string `Less than 10`
|
||||
`orderMyLogic(6)`는 `Less than 10`문자열을 반환해야 합니다.
|
||||
|
||||
```js
|
||||
assert(orderMyLogic(6) === 'Less than 10');
|
||||
```
|
||||
|
||||
`orderMyLogic(11)` should return the string `Greater than or equal to 10`
|
||||
`orderMyLogic(11)`는 `Greater than or equal to 10`문자열을 반환해야 합니다.
|
||||
|
||||
```js
|
||||
assert(orderMyLogic(11) === 'Greater than or equal to 10');
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
id: bd7993c9c69feddfaeb8bdef
|
||||
title: Store Multiple Values in one Variable using JavaScript Arrays
|
||||
title: 자바스크립트 배열을 사용해서 1개의 변수에 여러 개의 값을 넣기
|
||||
challengeType: 1
|
||||
videoUrl: 'https://scrimba.com/c/crZQWAm'
|
||||
forumTopicId: 18309
|
||||
@@ -9,9 +9,9 @@ dashedName: store-multiple-values-in-one-variable-using-javascript-arrays
|
||||
|
||||
# --description--
|
||||
|
||||
With JavaScript `array` variables, we can store several pieces of data in one place.
|
||||
자바스크립트의 `array` 변수를 사용하는 것으로, 여러 개의 데이터를 한 곳에 넣는 것이 가능합니다.
|
||||
|
||||
You start an array declaration with an opening square bracket, end it with a closing square bracket, and put a comma between each entry, like this:
|
||||
배열을 선언하기 위해서는 다음과 같이, 시작 대괄호를 써서 선언을 시작하고, 각 항목 사이에 쉼표를 넣고, 마지막으로 종료 대괄호를 씁니다.
|
||||
|
||||
```js
|
||||
const sandwich = ["peanut butter", "jelly", "bread"];
|
||||
@@ -19,23 +19,23 @@ const sandwich = ["peanut butter", "jelly", "bread"];
|
||||
|
||||
# --instructions--
|
||||
|
||||
Modify the new array `myArray` so that it contains both a string and a number (in that order).
|
||||
문자열과 숫자 모두가 (이 순서로) 포함되도록, 새로운 배열 `myArray`를 수정하세요.
|
||||
|
||||
# --hints--
|
||||
|
||||
`myArray` should be an array.
|
||||
`myArray`는 배열이어야 합니다.
|
||||
|
||||
```js
|
||||
assert(typeof myArray == 'object');
|
||||
```
|
||||
|
||||
The first item in `myArray` should be a string.
|
||||
`myArray`의 첫 번째 항목은 문자열이어야 합니다.
|
||||
|
||||
```js
|
||||
assert(typeof myArray[0] !== 'undefined' && typeof myArray[0] == 'string');
|
||||
```
|
||||
|
||||
The second item in `myArray` should be a number.
|
||||
`myArray`의 두 번째 항목은 숫자여야 합니다.
|
||||
|
||||
```js
|
||||
assert(typeof myArray[1] !== 'undefined' && typeof myArray[1] == 'number');
|
||||
|
||||
Reference in New Issue
Block a user