You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README-ko_KR.md
+34-31Lines changed: 34 additions & 31 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -163,7 +163,7 @@ const mouse = {
163
163
164
164
#### 정답: A
165
165
166
-
JavaScript에서, 모든 객체 키는 문자열이에요 (Symbol이 아닌 한). 비록 그것을 문자열 _타입_ 으로 입력하지 않아도, 항상 밑바닥에서 문자열로 변환되요.
166
+
JavaScript에서, 모든 객체 키는 문자열이에요 (Symbol이 아닌 한). 비록 그것을 문자열 _타입_ 으로 입력하지 않아도, 항상 내부적으로 문자열로 변환되요.
167
167
168
168
JavaScript는 문장을 해석(또는 박스해제)해요. 대괄호 표기를 사용하면, 첫 번째 좌대괄호 `[`를 보고 오른쪽 대괄호 `]`를 찾을 때까지 진행해요. 그때, 그 문장을 평가할거에요.
169
169
@@ -298,7 +298,7 @@ console.log(greetign);
298
298
299
299
#### 정답: A
300
300
301
-
객체는 출력되요, 전역객체에 빈 객체를 방금 만들었기 때문이에요. `greeting`을 `greettign`으로 잘못 입력했을 경우, JS 터프리터는 실제로 이것을 `global.greettign = {}` (또는 브라우저의 `window.greetign = {}`) 라고 간주해요.
301
+
객체는 출력되요, 전역객체에 빈 객체를 방금 만들었기 때문이에요. `greeting`을 `greettign`으로 잘못 입력했을 경우, JS 인터프리터는 실제로 이것을 `global.greettign = {}` (또는 브라우저의 `window.greetign = {}`) 라고 간주해요.
302
302
303
303
이것을 피하기 위해서, `"use strict"`를 사용할 수 있어요. 이렇게 하면 변수를 어떤 것과 동일하게 설정하기 전에 변수를 선언했는지 확인할 수 있어요.
304
304
@@ -328,7 +328,7 @@ bark.animal = "dog";
328
328
#### 정답: A
329
329
330
330
JavaScript에서는 가능해요, 함수는 객체이기 때문이에요!
331
-
(프리미티브형 이외는 모두 객체)
331
+
(윈시형 이외는 모두 객체)
332
332
333
333
함수는 특별한 종류의 객체에요. 당신이 쓴 코드는 실제 함수가 아니에요. 함수는 속성을 가진 객체에요. 이 속성은 호출이 가능해요.
334
334
@@ -571,7 +571,7 @@ checkAge({ age: 18 });
571
571
572
572
#### 정답: C
573
573
574
-
동등성을 테스트할 때, 프리미티브는 그 _값_ 에 따라 비교되며, 객체는 그들의 _참조_ 에 따라 비교되요. JavaScript 객체가 메모리내의 같은 장소를 참조하고 있는지 여부를 확인해요.
574
+
동등성을 테스트할 때, 원시형은 그 _값_ 에 따라 비교되며, 객체는 그들의 _참조_ 에 따라 비교되요. JavaScript 객체가 메모리내의 같은 장소를 참조하고 있는지 여부를 확인해요.
575
575
576
576
비교하고 있는 두개의 객체는 그것이 없어요: 파라미터로 전달된 객체와 동등성을 확인하기 위해 사용한 객체는 메모리 내의 다른 장소를 참조해요.
577
577
@@ -654,32 +654,32 @@ const sum = eval("10*10+5");
654
654
655
655
#### 정답: A
656
656
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`를 리턴해요.
658
658
659
659
</p>
660
660
</details>
661
661
662
662
---
663
663
664
-
###### 22. How long is cool_secret accessible?
664
+
###### 22. cool_secret에 몇시간 접근이 가능 할까요 ?
665
665
666
666
```javascript
667
667
sessionStorage.setItem("cool_secret", 123);
668
668
```
669
669
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: 사용자가 자신의 컴퓨터를 종료시켰을때.
674
674
675
675
<details><summary><b>정답</b></summary>
676
676
<p>
677
677
678
678
#### 정답: B
679
679
680
-
The data stored in `sessionStorage` is removed after closing the _tab_.
680
+
`sessionStorage`에 저장된 데이터는 _탭_ 을 닫은 후에 삭제되요.
681
681
682
-
If you used `localStorage`, the data would've been there forever, unless for example `localStorage.clear()` is invoked.
682
+
만약 `localStorage`를 사용했다면, 예를들어 `localStorage.clear()`를 호출 하지 않는 한, 데이터는 영원할거에요.
683
683
684
684
</p>
685
685
</details>
@@ -705,9 +705,9 @@ console.log(num);
705
705
706
706
#### 정답: B
707
707
708
-
With the `var` keyword, you can declare multiple variables with the same name. The variable will then hold the latest value.
708
+
`var`키워드를 사용하면, 같은 이름으로 복수의 변수를 선언 할 수 있어요. 변수는 최신의 값을 유지해요.
709
709
710
-
You cannot do this with `let`or`const` since they're block-scoped.
710
+
블록 스코프의 `let`또는`const`에서는 할 수 없어요.
711
711
712
712
</p>
713
713
</details>
@@ -736,9 +736,10 @@ set.has(1);
736
736
737
737
#### 정답: C
738
738
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를 리턴하는 이유에요.
740
741
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`를 리턴해요.
742
743
743
744
</p>
744
745
</details>
@@ -762,14 +763,14 @@ console.log(obj);
762
763
763
764
#### 정답: C
764
765
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
+
같은 이름의 키를 두개 가지고 있다면, 첫번째 위치에서, 마지막에 지정된 값으로 대체 될 거에요.
766
767
767
768
</p>
768
769
</details>
769
770
770
771
---
771
772
772
-
###### 26. The JavaScript global execution context creates two things for you: the global object, and the "this" keyword.
@@ -780,7 +781,7 @@ If you have two keys with the same name, the key will be replaced. It will still
780
781
781
782
#### 정답: A
782
783
783
-
The base execution context is the global execution context: it's what's accessible everywhere in your code.
784
+
기본적인 execution context는 전역 실행 문장이에요: 당신의 코드 모든 곳에서 접근 할 수 있어요.
784
785
785
786
</p>
786
787
</details>
@@ -806,7 +807,7 @@ for (let i = 1; i < 5; i++) {
806
807
807
808
#### 정답: C
808
809
809
-
The `continue`statement skips an iteration if a certain condition returns `true`.
810
+
`continue`표현식은 특정 조건이 `true`를 리턴하면 반복처리를 건너뛰어요.
810
811
811
812
</p>
812
813
</details>
@@ -835,7 +836,7 @@ name.giveLydiaPizza();
835
836
836
837
#### 정답: A
837
838
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`은 내장 생성자로 속성을 추가 할 수 있어요. 단지 프로토타입이라는 메소드를 추가했어요. 원시형 문자열은 문자열 프로토타입 함수에 의해 생성된 문자열 객체로 자동 변환되요. 그래서, 모든 문자열(문자열 객체)는 그 메소드에 접근 할 수 있어요!
839
840
840
841
</p>
841
842
</details>
@@ -865,11 +866,11 @@ console.log(a[b]);
865
866
866
867
#### 정답: B
867
868
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`를 세팅하려고 해요.
869
870
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`이 되요.
871
872
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`를 리턴해요.
873
874
874
875
</p>
875
876
</details>
@@ -898,31 +899,33 @@ baz();
898
899
899
900
#### 정답: B
900
901
901
-
We have a `setTimeout` function and invoked it first. Yet, it was logged last.
902
+
`setTimeout`함수를 처음으로 호출 했어요. 그러나 그것은 마지막에 출력되요.
902
903
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을 예로 들 수 있어요.
904
905
905
906
After the _callback_ is pushed to the WebAPI, the `setTimeout` function itself (but not the callback!) is popped off the stack.
906
907
908
+
_callback_ 이 WebAPI에 푸시된 후, `setTimeout`함수 자체(callback이 아니에요!)는 stack에 사라졌어요.
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 위로 푸시해요.
0 commit comments