mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-04-11 16:00:12 -04:00
chore(i18n,learn): processed translations (#54879)
This commit is contained in:
committed by
GitHub
parent
32b93cfb2b
commit
7bf0611b9e
@@ -1,6 +1,6 @@
|
||||
---
|
||||
id: 56533eb9ac21ba0edf2244b0
|
||||
title: Compound Assignment With Augmented Subtraction
|
||||
title: 빼기를 추가해서 복합적으로 할당하기
|
||||
challengeType: 1
|
||||
videoUrl: 'https://scrimba.com/c/c2Qv7AV'
|
||||
forumTopicId: 16660
|
||||
@@ -9,13 +9,13 @@ dashedName: compound-assignment-with-augmented-subtraction
|
||||
|
||||
# --description--
|
||||
|
||||
Like the `+=` operator, `-=` subtracts a number from a variable.
|
||||
`+=` 연산자처럼, `-=`는 변수에서 수를 뺍니다.
|
||||
|
||||
```js
|
||||
myVar = myVar - 5;
|
||||
```
|
||||
|
||||
will subtract `5` from `myVar`. 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 `5`.
|
||||
`a`는 `5`와 같아야 합니다.
|
||||
|
||||
```js
|
||||
assert(a === 5);
|
||||
```
|
||||
|
||||
`b` should equal `-6`.
|
||||
`b`는 `-6`과 같아야 합니다.
|
||||
|
||||
```js
|
||||
assert(b === -6);
|
||||
```
|
||||
|
||||
`c` should equal `2`.
|
||||
`c`는 `2`와 같아야 합니다.
|
||||
|
||||
```js
|
||||
assert(c === 2);
|
||||
```
|
||||
|
||||
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: bd7123c9c443eddfaeb5bdef
|
||||
title: Declare JavaScript Variables
|
||||
title: JavaScript 변수 선언
|
||||
challengeType: 1
|
||||
videoUrl: 'https://scrimba.com/c/cNanrHq'
|
||||
forumTopicId: 17556
|
||||
@@ -9,32 +9,32 @@ dashedName: declare-javascript-variables
|
||||
|
||||
# --description--
|
||||
|
||||
In computer science, <dfn>data</dfn> is anything that is meaningful to the computer. JavaScript provides eight different <dfn>data types</dfn> which are `undefined`, `null`, `boolean`, `string`, `symbol`, `bigint`, `number`, and `object`.
|
||||
컴퓨터 과학에서 <dfn>데이터(data)</dfn>란 컴퓨터에게 있어서 의미있는 모든 것을 가리킵니다. JavaScript에서는 8가지의 다른 형태의 <dfn>데이터 타입</dfn>을 제공하며 그것들은 `undefined`, `null`, `boolean`, `string`, `symbol`, `bigint`, `number`, 그리고 `object` 입니다.
|
||||
|
||||
For example, computers distinguish between numbers, such as the number `12`, and `strings`, such as `"12"`, `"dog"`, or `"123 cats"`, which are collections of characters. Computers can perform mathematical operations on a number, but not on a string.
|
||||
예를 들어, 컴퓨터에서는 숫자(number) 인 `12`와 `strings`(문자열 : 문자들의 집합체) 인 `"12"`, `"dog"`, 또는 `"123 cats"`가 구별됩니다. 또한 컴퓨터는 숫자를 수학적으로 연산 할 수 있지만, 문자열(strings)은 불가능합니다.
|
||||
|
||||
<dfn>Variables</dfn> allow computers to store and manipulate data in a dynamic fashion. They do this by using a "label" to point to the data rather than using the data itself. Any of the eight data types may be stored in a variable.
|
||||
<dfn>Variables</dfn>(변수)는 컴퓨터가 데이터를 동적으로 저장하여 조작하는 것이 가능하게 합니다. 이 때 실제로 데이터 그 자체를 사용하는 게 아니라, 데이터를 가리키는 "라벨(label)"을 사용합니다. 위의 8가지의 데이터는 어떤 것이든 변수에 저장될 수가 있습니다.
|
||||
|
||||
Variables are similar to the x and y variables you use in mathematics, which means they're a simple name to represent the data we want to refer to. Computer variables differ from mathematical variables in that they can store different values at different times.
|
||||
컴퓨터에서의 변수는, 수학에서 사용하는 x나 y 라는 변수와 비슷합니다. 즉, 변수들이란 참조하고 싶은 데이터를 나타내는 간단한 이름입니다. 컴퓨터 변수는 수학적 변수와 달리 다른 시간에 다른 값을 저장할 수 있습니다.
|
||||
|
||||
We tell JavaScript to create or <dfn>declare</dfn> a variable by putting the keyword `var` in front of it, like so:
|
||||
자바스크립트에서 변수를 작성 또는 <dfn>선언(declare)</dfn>하기 위해서는, 다음과 같이 변수 앞에 `var` 키워드를 붙입니다.
|
||||
|
||||
```js
|
||||
var ourName;
|
||||
```
|
||||
|
||||
creates a variable called `ourName`. In JavaScript we end statements with semicolons. Variable names can be made up of numbers, letters, and `$` or `_`, but may not contain spaces or start with a number.
|
||||
이걸로 `ourName`라는 하나의 변수가 만들어졌습니다. 자바스크립트에서는 문장의 마지막에 세미콜론(;) 을 붙입니다. 변수 이름으로는 숫자, 문자, `$` 또는 `_`를 사용할 수 있습니다. 하지만 공백(띄어쓰기)을 추가하거나 숫자로 변수 이름을 시작할 수는 없습니다.
|
||||
|
||||
# --instructions--
|
||||
|
||||
Use the `var` keyword to create a variable called `myName`.
|
||||
`var` 키워드를 사용해 `myName`이라는 변수를 만들어 보세요.
|
||||
|
||||
**Hint**
|
||||
Look at the `ourName` example above if you get stuck.
|
||||
**힌트**
|
||||
이해하기 어려울 때는 위의 `ourName`의 예를 봐 주세요.
|
||||
|
||||
# --hints--
|
||||
|
||||
You should declare `myName` with the `var` keyword, ending with a semicolon
|
||||
`myName`을 `var` 키워드를 사용해 선언하고, 세미콜론(;) 을 마지막에 붙여야 합니다.
|
||||
|
||||
```js
|
||||
assert(/var\s+myName\s*;/.test(__helpers.removeJSComments(code)));
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
id: 56533eb9ac21ba0edf2244e0
|
||||
title: Replacing If Else Chains with Switch
|
||||
title: If Else를 Switch로 대체하기
|
||||
challengeType: 1
|
||||
videoUrl: 'https://scrimba.com/c/c3JE8fy'
|
||||
forumTopicId: 18266
|
||||
@@ -9,7 +9,7 @@ dashedName: replacing-if-else-chains-with-switch
|
||||
|
||||
# --description--
|
||||
|
||||
If you have many options to choose from, a `switch` statement can be easier to write than many chained `if`/`else if` statements. The following:
|
||||
선택할 옵션이 많을 경우 `switch`문은 연쇄 `if`/`else if`문보다 쓰기 쉬울 수 있습니다. 다음은
|
||||
|
||||
```js
|
||||
if (val === 1) {
|
||||
@@ -21,7 +21,7 @@ if (val === 1) {
|
||||
}
|
||||
```
|
||||
|
||||
can be replaced with:
|
||||
아래와 같이 대체될 수 있습니다.
|
||||
|
||||
```js
|
||||
switch (val) {
|
||||
@@ -38,65 +38,65 @@ switch (val) {
|
||||
|
||||
# --instructions--
|
||||
|
||||
Change the chained `if`/`else if` statements into a `switch` statement.
|
||||
연쇄 `if`/`else if`문을 `switch`문으로 변환하시오.
|
||||
|
||||
# --hints--
|
||||
|
||||
You should not use any `else` statements anywhere in the editor
|
||||
편집기 어디에도 `else`문이 사용되지 않아야 합니다.
|
||||
|
||||
```js
|
||||
assert(!/else/g.test(__helpers.removeJSComments(code)));
|
||||
```
|
||||
|
||||
You should not use any `if` statements anywhere in the editor
|
||||
편집기 어디에도 `if`문이 사용되지 않아야 합니다.
|
||||
|
||||
```js
|
||||
assert(!/if/g.test(__helpers.removeJSComments(code)));
|
||||
```
|
||||
|
||||
You should have at least four `break` statements
|
||||
적어도 네 개의 `break`문이 있어야 합니다.
|
||||
|
||||
```js
|
||||
assert(__helpers.removeJSComments(code).match(/break/g).length >= 4);
|
||||
```
|
||||
|
||||
`chainToSwitch("bob")` should return the string `Marley`
|
||||
`chainToSwitch("bob")`은 문자열 `Marley`를 반환해야 합니다.
|
||||
|
||||
```js
|
||||
assert(chainToSwitch('bob') === 'Marley');
|
||||
```
|
||||
|
||||
`chainToSwitch(42)` should return the string `The Answer`
|
||||
`chainToSwitch(42)`는 문자열 `The Answer`를 반환해야 합니다.
|
||||
|
||||
```js
|
||||
assert(chainToSwitch(42) === 'The Answer');
|
||||
```
|
||||
|
||||
`chainToSwitch(1)` should return the string `There is no #1`
|
||||
`chainToSwitch(1)`은 문자열 `There is no #1`을 반환해야 합니다.
|
||||
|
||||
```js
|
||||
assert(chainToSwitch(1) === 'There is no #1');
|
||||
```
|
||||
|
||||
`chainToSwitch(99)` should return the string `Missed me by this much!`
|
||||
`chainToSwitch(99)`은 문자열 `Missed me by this much!`을 반환해야 합니다.
|
||||
|
||||
```js
|
||||
assert(chainToSwitch(99) === 'Missed me by this much!');
|
||||
```
|
||||
|
||||
`chainToSwitch(7)` should return the string `Ate Nine`
|
||||
`chainToSwitch(7)`은 문자열 `Ate Nine`을 반환해야 합니다.
|
||||
|
||||
```js
|
||||
assert(chainToSwitch(7) === 'Ate Nine');
|
||||
```
|
||||
|
||||
`chainToSwitch("John")` should return `""` (empty string)
|
||||
`chainToSwitch("John")`은 `""` (빈 문자열)을 반환해야 합니다.
|
||||
|
||||
```js
|
||||
assert(chainToSwitch('John') === '');
|
||||
```
|
||||
|
||||
`chainToSwitch(156)` should return `""` (empty string)
|
||||
`chainToSwitch(156)`은 `""` (빈 문자열)을 반환해야 합니다.
|
||||
|
||||
```js
|
||||
assert(chainToSwitch(156) === '');
|
||||
|
||||
Reference in New Issue
Block a user