mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-04-12 01:00:13 -04:00
chore(i18n,learn): processed translations (#54848)
This commit is contained in:
committed by
GitHub
parent
d137a037e6
commit
7e1823dcf0
@@ -1,6 +1,6 @@
|
||||
---
|
||||
id: 56533eb9ac21ba0edf2244af
|
||||
title: Compound Assignment With Augmented Addition
|
||||
title: 더하기를 추가해서 복합적으로 할당하기
|
||||
challengeType: 1
|
||||
videoUrl: 'https://scrimba.com/c/cDR6LCb'
|
||||
forumTopicId: 16661
|
||||
@@ -9,15 +9,15 @@ dashedName: compound-assignment-with-augmented-addition
|
||||
|
||||
# --description--
|
||||
|
||||
In programming, it is common to use assignments to modify the contents of a variable. Remember that everything to the right of the equals sign is evaluated first, so we can say:
|
||||
프로그래밍에서는 할당을 사용해서 변수의 값을 변경하는 일이 자주 일어납니다. 우선 등호(=) 의 우측 변에 있는 모든 것이 먼저 연산된다는 것을 기억하고 다음을 보세요.
|
||||
|
||||
```js
|
||||
myVar = myVar + 5;
|
||||
```
|
||||
|
||||
to add `5` to `myVar`. Since this is such a common pattern, there are operators which do both a mathematical operation and assignment in one step.
|
||||
위와 같이 하면 `5`를 `myVar`에 더합니다. 이러한 조작은 일반적인 패턴이므로, 산술 연산과 할당 2가지를 한꺼번에 처리하는 연산자가 있습니다.
|
||||
|
||||
One such operator is the `+=` operator.
|
||||
그중 하나가 `+=` 연산자입니다.
|
||||
|
||||
```js
|
||||
let myVar = 1;
|
||||
@@ -25,39 +25,39 @@ myVar += 5;
|
||||
console.log(myVar);
|
||||
```
|
||||
|
||||
`6` would be displayed in the console.
|
||||
콘솔에 `6`의 값이 나타날 것입니다.
|
||||
|
||||
# --instructions--
|
||||
|
||||
Convert the assignments for `a`, `b`, and `c` to use the `+=` operator.
|
||||
`a`, `b`, 및 `c`에 대한 할당을 `+=` 연산자를 사용하도록 변환하십시오.
|
||||
|
||||
# --hints--
|
||||
|
||||
`a` should equal `15`.
|
||||
`a`는 `15`와 같아야 합니다.
|
||||
|
||||
```js
|
||||
assert(a === 15);
|
||||
```
|
||||
|
||||
`b` should equal `26`.
|
||||
`b`는 `26`과 같아야 합니다.
|
||||
|
||||
```js
|
||||
assert(b === 26);
|
||||
```
|
||||
|
||||
`c` should equal `19`.
|
||||
`c`는 `19`와 같아야 합니다.
|
||||
|
||||
```js
|
||||
assert(c === 19);
|
||||
```
|
||||
|
||||
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(
|
||||
|
||||
Reference in New Issue
Block a user