본문 바로가기 메뉴 바로가기

Studying programming

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

Studying programming

검색하기 폼
  • Jimin's Programming (194)
    • Algorithms (54)
    • JavaScript (16)
    • Vue.js (3)
    • Node.js (3)
    • React.js (7)
    • React Native (0)
    • Spring Boot (13)
    • JAVA (58)
    • C++ (17)
    • Programming (19)
    • Computer basics (4)
  • 방명록

this in JavaScript (1)
'This' in JavaScript

JavaScript에서 this 키워드는 다른 언어에서의 this와 좀 다른 특징을 가지고 있다. Java에서는 자기자신을 나타내는 용도로 사용되기에 parameter와 속성의 이름이 같을 경우나 다른 overloading된 constructor를 불러올때 사용되는데 반해 JavaScript에서는 호출하는 방법 즉, '호출한 객체' 가 누구(무엇)냐에 따라 this가 달라진다. bind() method를 사용해 this를 고정시키는 방법도 있다. Reference https://www.youtube.com/watch?v=PAr92molMHU

JavaScript 2019. 8. 27. 03:47
이전 1 다음
이전 다음
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
TAG
  • equals()
  • easy javascript algorithm
  • math.abs
  • javascript
  • hackerrank javascript solution
  • substring()
  • compareTo()
  • Collection Framework
  • Javascript Algorithm
  • HashMap
  • rest parameter
  • HackerRank Algorithm
  • code refactoring
  • 프로그래머스 알고리즘
  • hackerrank solution
  • algorithm
  • repeat()
  • java
  • 프로그래머스 알고리즘문제
  • C++
  • hackerrank javascript
  • easy algorithm
  • string class in java
  • ... in Javascript
  • spring boot application
  • 프로그래머스
  • hackerrank
  • 알고리즘
  • Object type casting
  • math.max
more
«   2025/08   »
일 월 화 수 목 금 토
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
31
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바