mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-04-11 16:00:12 -04:00
chore(i18n,learn): processed translations (#53415)
Co-authored-by: Naomi Carrigan <nhcarrigan@gmail.com> Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
This commit is contained in:
@@ -26,8 +26,7 @@ const nestedSubarray = arr[3][0];
|
||||
const element = arr[3][0][1];
|
||||
```
|
||||
|
||||
In this example, `subarray` has the value `[[10, 11, 12], 13, 14]`,
|
||||
`nestedSubarray` has the value `[10, 11, 12]`, and `element` has the value `11` .
|
||||
In this example, `subarray` has the value `[[10, 11, 12], 13, 14]`, `nestedSubarray` has the value `[10, 11, 12]`, and `element` has the value `11` .
|
||||
|
||||
**Note:** There shouldn't be any spaces between the array name and the square brackets, like `array [0][0]` and even this `array [0] [0]` is not allowed. Although JavaScript is able to process this correctly, this may confuse other programmers reading your code.
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@ Example:
|
||||
const ourStr = "I come first. " + "I come second.";
|
||||
```
|
||||
|
||||
The string `I come first. I come second.` would be displayed in the console.
|
||||
콘솔에 문자열 `I come first. I come second.` 가 표시 될것입니다.
|
||||
# --instructions--
|
||||
|
||||
Build `myStr` from the strings `This is the start.` and `This is the end.` using the `+` operator. Be sure to include a space between the two strings.
|
||||
|
||||
@@ -22,7 +22,7 @@ const ourStr = "Hello, our name is " + ourName + ", how are you?";
|
||||
|
||||
# --instructions--
|
||||
|
||||
Set `myName` to a string equal to your name and build `myStr` with `myName` between the strings `My name is ` and ` and I am well!`
|
||||
Set `myName` to a string equal to your name and build `myStr` with `myName` between the strings `My name is` and `and I am well!`
|
||||
|
||||
# --hints--
|
||||
|
||||
|
||||
@@ -20,8 +20,7 @@ You will write a card counting function. It will receive a `card` parameter, whi
|
||||
**Example Outputs:** `-3 Hold` or `5 Bet`
|
||||
|
||||
**Hint**
|
||||
Do NOT reset `count` to 0 when value is 7, 8, or 9.
|
||||
Do NOT return an array.
|
||||
Do NOT reset `count` to 0 when value is 7, 8, or 9. Do NOT return an array.
|
||||
Do NOT include quotes (single or double) in the output.
|
||||
|
||||
# --hints--
|
||||
|
||||
@@ -15,7 +15,7 @@ We can also delete properties from objects like this:
|
||||
delete ourDog.bark;
|
||||
```
|
||||
|
||||
Example:
|
||||
예:
|
||||
|
||||
```js
|
||||
const ourDog = {
|
||||
|
||||
@@ -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. Here is an example:
|
||||
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 = [
|
||||
|
||||
@@ -11,7 +11,7 @@ dashedName: return-early-pattern-for-functions
|
||||
|
||||
When a `return` statement is reached, the execution of the current function stops and control returns to the calling location.
|
||||
|
||||
**Example**
|
||||
**예)**
|
||||
|
||||
```js
|
||||
function myFun() {
|
||||
|
||||
@@ -92,7 +92,7 @@ testArr = [1,2,3,4,5];
|
||||
```js
|
||||
function nextInLine(arr, item) {
|
||||
// Only change code below this line
|
||||
|
||||
|
||||
return item;
|
||||
// Only change code above this line
|
||||
}
|
||||
|
||||
@@ -10,7 +10,7 @@ dashedName: testing-objects-for-properties
|
||||
|
||||
To check if a property on a given object exists or not, you can use the `.hasOwnProperty()` method. `someObject.hasOwnProperty(someProperty)` returns `true` or `false` depending on if the property is found on the object or not.
|
||||
|
||||
**Example**
|
||||
**예)**
|
||||
|
||||
```js
|
||||
function checkForProperty(object, property) {
|
||||
|
||||
@@ -11,7 +11,7 @@ dashedName: understanding-undefined-value-returned-from-a-function
|
||||
|
||||
A function can include the `return` statement but it does not have to. In the case that the function doesn't have a `return` statement, when you call it, the function processes the inner code but the returned value is `undefined`.
|
||||
|
||||
**Example**
|
||||
**예)**
|
||||
|
||||
```js
|
||||
let sum = 0;
|
||||
|
||||
@@ -17,7 +17,7 @@ When the condition evaluates to `true`, the program executes the statement insid
|
||||
|
||||
<blockquote>if (<i>condition is true</i>) {<br> <i>statement is executed</i><br>}</blockquote>
|
||||
|
||||
**Example**
|
||||
**예:**
|
||||
|
||||
```js
|
||||
function test(myCondition) {
|
||||
|
||||
@@ -37,7 +37,7 @@ function findGreaterOrEqual(a, b) {
|
||||
}
|
||||
```
|
||||
|
||||
It is considered best practice to format multiple conditional operators such that each condition is on a separate line, as shown above. Using multiple conditional operators without proper indentation may make your code hard to read. For example:
|
||||
It is considered best practice to format multiple conditional operators such that each condition is on a separate line, as shown above. Using multiple conditional operators without proper indentation may make your code hard to read. 예:
|
||||
|
||||
```js
|
||||
function findGreaterOrEqual(a, b) {
|
||||
|
||||
@@ -9,7 +9,7 @@ dashedName: use-the-parseint-function
|
||||
|
||||
# --description--
|
||||
|
||||
The `parseInt()` function parses a string and returns an integer. Here's an example:
|
||||
The `parseInt()` function parses a string and returns an integer. 여기 예시가 있습니다:
|
||||
|
||||
```js
|
||||
const a = parseInt("007");
|
||||
|
||||
@@ -17,7 +17,7 @@ Consider this sentence:
|
||||
It was really ____, and we ____ ourselves ____.
|
||||
```
|
||||
|
||||
This sentence has three missing pieces- an adjective, a verb and an adverb, and we can add words of our choice to complete it. We can then assign the completed sentence to a variable as follows:
|
||||
이 문장은 형용사, 동사, 부사의 3가지가 빈칸으로 되어 있어서, 우리는 좋아하는 단어를 넣어 문장을 완성시킬 수 있습니다. 그리고 우리는 다음과 같이 완성한 문장을 변수에 할당할 수 있습니다:
|
||||
|
||||
```js
|
||||
const sentence = "It was really " + "hot" + ", and we " + "laughed" + " ourselves " + "silly" + ".";
|
||||
@@ -25,21 +25,21 @@ const sentence = "It was really " + "hot" + ", and we " + "laughed" + " ourselve
|
||||
|
||||
# --instructions--
|
||||
|
||||
In this challenge, we provide you with a noun, a verb, an adjective and an adverb. You need to form a complete sentence using words of your choice, along with the words we provide.
|
||||
이 도전에서, 우리는 명사, 동사, 형용사, 부사를 제시했습니다. 당신은 우리가 제시한 단어들 속에서, 직접 선택한 단어를 사용해서 문장을 완성할 필요가 있습니다.
|
||||
|
||||
You will need to use the string concatenation operator `+` to build a new string, using the provided variables: `myNoun`, `myAdjective`, `myVerb`, and `myAdverb`. You will then assign the formed string to the `wordBlanks` variable. You should not change the words assigned to the variables.
|
||||
당신은 제공된 변수 (`myNoun`, `myAdjective`, `myVerb`, and `myAdverb`) 를 사용해서 새로운 문자열을 작성하기 위해, 문자열 연결 연산자 `+`를 사용할 필요가 있습니다. 그리고 당신은 작성한 문자열을 `wordBlanks` 변수에 할당합니다. 변수에 할당되어 있는 단어를 변경해서는 안됩니다.
|
||||
|
||||
You will also need to account for spaces in your string, so that the final sentence has spaces between all the words. The result should be a complete sentence.
|
||||
당신은 문자열 안의 공백에도 주의할 필요가 있습니다. 최종 문장에서는 모든 단어 사이에 공백을 포함하도록 합니다. 결과는 완전한 문장이 되어야 합니다.
|
||||
|
||||
# --hints--
|
||||
|
||||
`wordBlanks` should be a string.
|
||||
`wordBlanks`은 문자열이어야 합니다.
|
||||
|
||||
```js
|
||||
assert(typeof wordBlanks === 'string');
|
||||
```
|
||||
|
||||
You should not change the values assigned to `myNoun`, `myVerb`, `myAdjective` or `myAdverb`.
|
||||
당신은 `myNoun`, `myVerb`, `myAdjective` or `myAdverb`에 할당된 값을 변화시키면 안됩니다.
|
||||
|
||||
```js
|
||||
assert(
|
||||
@@ -50,7 +50,7 @@ assert(
|
||||
);
|
||||
```
|
||||
|
||||
You should not directly use the values `dog`, `ran`, `big`, or `quickly` to create `wordBlanks`.
|
||||
`wordBlanks`을 작성하기 위해서 `dog`, `ran`, `big`, 또는 `quickly`의 값들을 직접적으로 사용해서는 안됩니다.
|
||||
|
||||
```js
|
||||
const newCode = removeAssignments(code);
|
||||
|
||||
Reference in New Issue
Block a user