Open
Conversation
Open
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.
27. 배열
✏️ 기억에 남는 내용
자바스크립트의 모든 값은 배열의 요소가 될 수 있다.
자바스크립트에 배열이라는 타입은 존재하지 않는다. 배열은 객체 타입이다.
자바스크립트 배열은 배열이 아니다.
📝 간단한 퀴즈
자바스크립트의 배열은 일반적인 자료구조의 배열과 다르다. 그 차이점에 대해서 간단하게 이야기 해보자.
Array.prototype.push와 같은 메서드는 원본 배열을 변경 시킨다. 원본 배열을 변경시키는 것이 어떠한 문제가 있는지 이야기 해보고push메서드를 대체할 수 있는 방법을 작성해보자.Array.prototype의 메서드를 이용하여 스택(Stack) 혹은 큐(Queue)를 두 가지 방법(prototype, class)로 구현해보자.🧑🏻💻 연관 코드
// 관련 코드를 적어주세요.