Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
✅ 학습 내용 요약
🤔 궁금했던 부분
1. 일반함수의 this와 생성자 함수의 this 차이는??
this를 사용하고 있는 함수가 어떻게 호출된 함수냐에 따라 달라진다.
일반함수의 this
=> 전역 객체
메소드함수에서의 this
=> 해당 메소드를 가지고 있는 객체를 가리킨다.
생성자함수에서의 this
-함수를 호출할 때 new를 붙여서 호출하면 해당 함수는 생성자로서 동작한다.
2. 전역 렉시컬 환경은 객체환경레코드와 선언적 환경 레코드로 구성되어있고, 함수 렉시컬 환경은 함수 환경 레코드로만 구성되어있는 것인가?
전역 렉시컬 환경의 구성 컴포넌트와 함수환경 레코드의 구성 컴포넌트가 다른 것이 맞는지 궁금하다!
3. [[GlobalThisValue]] 와 [[ThisValue]]로 구분한 이유는 전역과 함수의 차이인가?
4. 책에서 의미하는 [[Environment]]란 외부 렉시컬 환경에대한 참조와 동일한 것인가?