[1주차][홀랄리] var vs let vs const#107
Open
eotkd4791 wants to merge 1 commit intofe-backpackers:eotkd4791from
Open
[1주차][홀랄리] var vs let vs const#107eotkd4791 wants to merge 1 commit intofe-backpackers:eotkd4791from
eotkd4791 wants to merge 1 commit intofe-backpackers:eotkd4791from
Conversation
|
|
||
| - 블록이란 함수, 반복문, 조건문, 빈 블록 등 중괄호({})로 감싸진 영역을 의미합니다. | ||
|
|
||
| - 또한 var는 전역 스코프에서 선언하면 window 객체의 프로퍼티가 되지만, const/let은 전역에서 선언하더라도 window 객체의 프로퍼티가 되지 않습니다. |
Contributor
There was a problem hiding this comment.
strict mode 일때는 var로 전역 스코프에서 선언해도 window 객체의 프로퍼티가 안되지 않나요..?
Collaborator
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.

#67