- this는 함수가 어떻게 호출되는지에 따라 동적으로 결정
- this의 주요 목적은 작성된 코드를 여러 목적으로 재사용하기 위해 존재하지만 호출되는 방식에 따라 동적으로 결정되어 잘못된 코드를 작성할 수 있음
- 전역에서 사용할 수도 있고 함수 안에서 사용할 수 있지만 함수는 객체 안에 메소드로 정의될 수 있고, 생성자 함수로 사용될 수 있고, 특정 로직을 계산하여 값을 반환하는 목적으로도 사용
- 힘수가 다양하게 사용되기 대문에 this도 각 함수별로 다르게 해석. 화삺 함수에서으 this도 다르게 해석되고 class 안에서 사용되는 this는 생성자 함수와 동일
javascript-practice's Introduction
javascript-practice's People
javascript-practice's Issues
README.md 수정
this 정리해놓기
src폴더 생성하고 파일 작성하기
README.md 파일 추가
README.md 파일 추가하기
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.