Skip to content

Commit ecbc6a7

Browse files
committed
Translate the questions 21-30 to Korean
1 parent 0f10dbb commit ecbc6a7

File tree

1 file changed

+34
-31
lines changed

1 file changed

+34
-31
lines changed

README-ko_KR.md

Lines changed: 34 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ const mouse = {
163163

164164
#### 정답: A
165165

166-
JavaScript에서, 모든 객체 키는 문자열이에요 (Symbol이 아닌 한). 비록 그것을 문자열 _타입_ 으로 입력하지 않아도, 항상 밑바닥에서 문자열로 변환되요.
166+
JavaScript에서, 모든 객체 키는 문자열이에요 (Symbol이 아닌 한). 비록 그것을 문자열 _타입_ 으로 입력하지 않아도, 항상 내부적으로 문자열로 변환되요.
167167

168168
JavaScript는 문장을 해석(또는 박스해제)해요. 대괄호 표기를 사용하면, 첫 번째 좌대괄호 `[`를 보고 오른쪽 대괄호 `]`를 찾을 때까지 진행해요. 그때, 그 문장을 평가할거에요.
169169

@@ -298,7 +298,7 @@ console.log(greetign);
298298

299299
#### 정답: A
300300

301-
객체는 출력되요, 전역객체에 빈 객체를 방금 만들었기 때문이에요. `greeting``greettign`으로 잘못 입력했을 경우, JS 터프리터는 실제로 이것을 `global.greettign = {}` (또는 브라우저의 `window.greetign = {}`) 라고 간주해요.
301+
객체는 출력되요, 전역객체에 빈 객체를 방금 만들었기 때문이에요. `greeting``greettign`으로 잘못 입력했을 경우, JS 인터프리터는 실제로 이것을 `global.greettign = {}` (또는 브라우저의 `window.greetign = {}`) 라고 간주해요.
302302

303303
이것을 피하기 위해서, `"use strict"`를 사용할 수 있어요. 이렇게 하면 변수를 어떤 것과 동일하게 설정하기 전에 변수를 선언했는지 확인할 수 있어요.
304304

@@ -328,7 +328,7 @@ bark.animal = "dog";
328328
#### 정답: A
329329

330330
JavaScript에서는 가능해요, 함수는 객체이기 때문이에요!
331-
(프리미티브형 이외는 모두 객체)
331+
(윈시형 이외는 모두 객체)
332332

333333
함수는 특별한 종류의 객체에요. 당신이 쓴 코드는 실제 함수가 아니에요. 함수는 속성을 가진 객체에요. 이 속성은 호출이 가능해요.
334334

@@ -571,7 +571,7 @@ checkAge({ age: 18 });
571571

572572
#### 정답: C
573573

574-
동등성을 테스트할 때, 프리미티브는__ 에 따라 비교되며, 객체는 그들의 _참조_ 에 따라 비교되요. JavaScript 객체가 메모리내의 같은 장소를 참조하고 있는지 여부를 확인해요.
574+
동등성을 테스트할 때, 원시형은__ 에 따라 비교되며, 객체는 그들의 _참조_ 에 따라 비교되요. JavaScript 객체가 메모리내의 같은 장소를 참조하고 있는지 여부를 확인해요.
575575

576576
비교하고 있는 두개의 객체는 그것이 없어요: 파라미터로 전달된 객체와 동등성을 확인하기 위해 사용한 객체는 메모리 내의 다른 장소를 참조해요.
577577

@@ -654,32 +654,32 @@ const sum = eval("10*10+5");
654654

655655
#### 정답: A
656656

657-
`eval` evaluates codes that's passed as a string. If it's an expression, like in this case, it evaluates the expression. The expression is `10 * 10 + 5`. This returns the number `105`.
657+
`eval` 문자열로서 통과된 코드를 평가해요. 이 경우와 같이 만약 그것이 표현식이라면, 표현식을 평가해요. 표현식은 `10 * 10 + 5` 이에요. 이것은 숫자 `105`를 리턴해요.
658658

659659
</p>
660660
</details>
661661

662662
---
663663

664-
###### 22. How long is cool_secret accessible?
664+
###### 22. cool_secret에 몇시간 접근이 가능 할까요 ?
665665

666666
```javascript
667667
sessionStorage.setItem("cool_secret", 123);
668668
```
669669

670-
- A: Forever, the data doesn't get lost.
671-
- B: When the user closes the tab.
672-
- C: When the user closes the entire browser, not only the tab.
673-
- D: When the user shuts off their computer.
670+
- A: 영원히, 데이터는 사라지지 않아요.
671+
- B: 사용자가 탭을 닫을 때.
672+
- C: 사용자가 탭 뿐만 아니라, 브라우저 전체를 닫을 때.
673+
- D: 사용자가 자신의 컴퓨터를 종료시켰을때.
674674

675675
<details><summary><b>정답</b></summary>
676676
<p>
677677

678678
#### 정답: B
679679

680-
The data stored in `sessionStorage` is removed after closing the _tab_.
680+
`sessionStorage`에 저장된 데이터는 __ 을 닫은 후에 삭제되요.
681681

682-
If you used `localStorage`, the data would've been there forever, unless for example `localStorage.clear()` is invoked.
682+
만약 `localStorage`를 사용했다면, 예를들어 `localStorage.clear()`를 호출 하지 않는 한, 데이터는 영원할거에요.
683683

684684
</p>
685685
</details>
@@ -705,9 +705,9 @@ console.log(num);
705705

706706
#### 정답: B
707707

708-
With the `var` keyword, you can declare multiple variables with the same name. The variable will then hold the latest value.
708+
`var`키워드를 사용하면, 같은 이름으로 복수의 변수를 선언 할 수 있어요. 변수는 최신의 값을 유지해요.
709709

710-
You cannot do this with `let` or `const` since they're block-scoped.
710+
블록 스코프의 `let` 또는 `const`에서는 할 수 없어요.
711711

712712
</p>
713713
</details>
@@ -736,9 +736,10 @@ set.has(1);
736736

737737
#### 정답: C
738738

739-
All object keys (excluding Symbols) are strings under the hood, even if you don't type it yourself as a string. This is why `obj.hasOwnProperty('1')` also returns true.
739+
모든 객체 키(Symbols 제외)
740+
모든 객체 키는(Symbol 제외) 문자열로 직접 입력하지 않아도, 내부적으로는 문자열이에요. 이것이 `obj.hasOwnProperty('1')` 또한 true를 리턴하는 이유에요.
740741

741-
It doesn't work that way for a set. There is no `'1'` in our set: `set.has('1')` returns `false`. It has the numeric type `1`, `set.has(1)` returns `true`.
742+
set에서는 작동하지 않아요. set에는 `'1'`이 없어요: `set.has('1')``false`를 리턴해요. 그것은 수형인 `1`을 가지고 있어, `set.has(1)``true`를 리턴해요.
742743

743744
</p>
744745
</details>
@@ -762,14 +763,14 @@ console.log(obj);
762763

763764
#### 정답: C
764765

765-
If you have two keys with the same name, the key will be replaced. It will still be in its first position, but with the last specified value.
766+
같은 이름의 키를 두개 가지고 있다면, 첫번째 위치에서, 마지막에 지정된 값으로 대체 될 거에요.
766767

767768
</p>
768769
</details>
769770

770771
---
771772

772-
###### 26. The JavaScript global execution context creates two things for you: the global object, and the "this" keyword.
773+
###### 26. JavaScript의 global execution context는 두개를 작성해요. : 전역객체와 "this" 키워드에요.
773774

774775
- A: true
775776
- B: false
@@ -780,7 +781,7 @@ If you have two keys with the same name, the key will be replaced. It will still
780781

781782
#### 정답: A
782783

783-
The base execution context is the global execution context: it's what's accessible everywhere in your code.
784+
기본적인 execution context는 전역 실행 문장이에요: 당신의 코드 모든 곳에서 접근 할 수 있어요.
784785

785786
</p>
786787
</details>
@@ -806,7 +807,7 @@ for (let i = 1; i < 5; i++) {
806807

807808
#### 정답: C
808809

809-
The `continue` statement skips an iteration if a certain condition returns `true`.
810+
`continue` 표현식은 특정 조건이 `true`를 리턴하면 반복처리를 건너뛰어요.
810811

811812
</p>
812813
</details>
@@ -835,7 +836,7 @@ name.giveLydiaPizza();
835836

836837
#### 정답: A
837838

838-
`String` is a built-in constructor, which we can add properties to. I just added a method to its prototype. Primitive strings are automatically converted into a string object, generated by the string prototype function. So, all strings (string objects) have access to that method!
839+
`String`은 내장 생성자로 속성을 추가 할 수 있어요. 단지 프로토타입이라는 메소드를 추가했어요. 원시형 문자열은 문자열 프로토타입 함수에 의해 생성된 문자열 객체로 자동 변환되요. 그래서, 모든 문자열(문자열 객체)는 그 메소드에 접근 할 수 있어요!
839840

840841
</p>
841842
</details>
@@ -865,11 +866,11 @@ console.log(a[b]);
865866

866867
#### 정답: B
867868

868-
Object keys are automatically converted into strings. We are trying to set an object as a key to object `a`, with the value of `123`.
869+
객체 키는 자동으로 문자열로 변환되요. 객체 `a`의 키 값으로 `123`를 세팅하려고 해요.
869870

870-
However, when we stringify an object, it becomes `"[Object object]"`. So what we are saying here, is that `a["Object object"] = 123`. Then, we can try to do the same again. `c` is another object that we are implicitly stringifying. So then, `a["Object object"] = 456`.
871+
그러나, 객체를 문자열화 하면 `"[Object object]"`가 되요. 그래서 여기서 밀하고자 하는 건 `a["Object object"] = 123` 이라는 거에요. 그후, 같은 일을 다시 시도해요. `c`는 암묵적으로 문자열화 한 다른객체에요. 그래서 `a["Object object"] = 456`이 되요.
871872

872-
Then, we log `a[b]`, which is actually `a["Object object"]`. We just set that to `456`, so it returns `456`.
873+
그후, `a[b]`는 출력하면 실제로는 `a["Object object"]`에요. 단지 `456`를 설정 했기때문에, `456`를 리턴해요.
873874

874875
</p>
875876
</details>
@@ -898,31 +899,33 @@ baz();
898899

899900
#### 정답: B
900901

901-
We have a `setTimeout` function and invoked it first. Yet, it was logged last.
902+
`setTimeout`함수를 처음으로 호출 했어요. 그러나 그것은 마지막에 출력되요.
902903

903-
This is because in browsers, we don't just have the runtime engine, we also have something called a `WebAPI`. The `WebAPI` gives us the `setTimeout` function to start with, and for example the DOM.
904+
브라우저에는 런타임 엔진 뿐만 아니라 `WebAPI`라고 불리는 것도 있기 때문이에요. `WebAPI``setTimeout`함수를 최초에 부여하는데, DOM을 예로 들 수 있어요.
904905

905906
After the _callback_ is pushed to the WebAPI, the `setTimeout` function itself (but not the callback!) is popped off the stack.
906907

908+
_callback_ 이 WebAPI에 푸시된 후, `setTimeout`함수 자체(callback이 아니에요!)는 stack에 사라졌어요.
909+
907910
<img src="https://i.imgur.com/X5wsHOg.png" width="200">
908911

909-
Now, `foo` gets invoked, and `"First"` is being logged.
912+
지금, `foo` 는 호출 되었고, `"First"`는 출력 되었어요.
910913

911914
<img src="https://i.imgur.com/Pvc0dGq.png" width="200">
912915

913-
`foo` is popped off the stack, and `baz` gets invoked. `"Third"` gets logged.
916+
`foo`는 stack에 사라지고, `baz`가 호출 되었어요. `"Third"`가 출력 되었어요.
914917

915918
<img src="https://i.imgur.com/WhA2bCP.png" width="200">
916919

917-
The WebAPI can't just add stuff to the stack whenever it's ready. Instead, it pushes the callback function to something called the _queue_.
920+
WebAPI는 준비가 될때 마다 stack에 항목을 추가 할 수 없어요. 대신에, _queue_ 라고 불리는 것에 callback함수를 푸시해요.
918921

919922
<img src="https://i.imgur.com/NSnDZmU.png" width="200">
920923

921-
This is where an event loop starts to work. An **event loop** looks at the stack and task queue. If the stack is empty, it takes the first thing on the queue and pushes it onto the stack.
924+
여기서 event loop가 작동하기 시작해요. **event loop**는 stack과 task queue를 봐요. stack이 비어있다면, queue에 첫번째것을 가져다가 stack 위로 푸시해요.
922925

923926
<img src="https://i.imgur.com/uyiScAI.png" width="200">
924927

925-
`bar` gets invoked, `"Second"` gets logged, and it's popped off the stack.
928+
`bar`가 호출되었고, `"Second"`가 출력 되었으며, stack에서 사라졌어요.
926929

927930
</p>
928931
</details>

0 commit comments

Comments
 (0)