일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
- DP
- 오에스
- 코딩
- 스택
- 코테
- 정석학술정보관
- coding
- 브루트포스
- 북리뷰
- 컴공과
- 컴퓨터공학과
- 알고리즘
- bfs
- Stack
- 개발
- 구현
- 백준
- OS
- 문제풀이
- 컴공
- 너비우선탐색
- 자료구조
- cs
- 정석
- c++
- 그래프
- Operating System
- Computer science
- vector
- 오퍼레이팅시스템
- Today
- Total
목록FrontEnd/Front End Interview Handbook (4)
Little Jay
IIFE(Immediate Invoked Function Expression) 말 그대로 해석을 해보면 된다. 즉시 실행함수를 가리킨다. function foo() {}(); 그렇다면 위의 코드는 왜 실행이 안되는 것일까? 자바스크립트 Parser는 function foo() {} 이 부분은 함수의 선언부인 반면에 후자(괄호의 쌍)는 함수를 호출하려는 시도이지만 실제로 어떠한 이름도 지정이 된 것이 없기 때문에 Uncaught SyntaxError: Unexpected token ). 와 같은 에러 상황이 발생할 것이다. 이를 해결하기 위해서는 괄호를 추가하는 두 가지의 방법이 있다. (function foo(){ })() (function foo(){ }()) function으로 시작하는 선언문은 함수..
자바스크립트 관련 단골 질문 중 하나입니다. 자바스크립트에서 모든 객체는 __proto__ 속성을 가지고 있습니다. 단, 어떤 객체가 Object.create(null)을 사용해서 생성이 되었다면, __proto__는 만들어지지 않습니다. 이 __proto__ property는 다른 객체에 대한 참조이며, 이를 객체의 "prototype"이라고 합니다. 만약 객체의 property에 접근하고, 해당 객체에서 property가 발견되지 않았을 때 자바스크립트 엔진(Javascript Engine)은 해당 객체의 __proto__를 살펴보기 시작합니다. 이때 __proto__만 참조하는 것이 아니라, __proto__의 __proto__를 계속해서 찾아보는데, 이 __proto__중 하나에 property가..
질문출처: https://www.frontendinterviewhandbook.com/javascript-questions#explain-how-this-works-in-javascript JavaScript trivia questions in front end interviews | Front End Interview Handbook Answers to Front-end Job Interview Questions - JS Questions. Pull requests for suggestions and corrections are welcome! www.frontendinterviewhandbook.com Javascript "this"에 대하여 사실 자바스크립트에서 "this"라는 키워드를 간단하게 정..

질문 출처: https://www.frontendinterviewhandbook.com/javascript-questions#explain-event-delegation JavaScript trivia questions in front end interviews | Front End Interview Handbook Answers to Front-end Job Interview Questions - JS Questions. Pull requests for suggestions and corrections are welcome! www.frontendinterviewhandbook.com 이벤트 위임 이벤트 위임이라고 하는 것은 부모 요소에 이벤트를 등록해서 하위의 자식 요소들을 제어하는 방식이다. 이벤트..