Dev_세발낙지

  • 홈
  • 태그
  • 방명록

Self 1

자바스크립트의 this란?

자바스크립트의 this는 파이썬의 self와 비슷하다. 그렇지만 미묘하게 다르게 작동하는 부분이 있는 것 같아서 자바스크립트의 this에 대해서 공부해보려 한다. class Test: def __init__(self,_num): self.__num = _num @property def num(self): return self.__num def increaseInner(self): self.__num += 1 return self.__num test = Test(1) increaseGlobal = test.increaseInner increaseGlobal() print(test.num) # 2 increaseGlobal() print(test.num) # 3 increaseGlobal() print(te..

배운 것 2022.06.06
이전
1
다음
더보기
프로필사진

Dev_세발낙지

개발자를 꿈꿉니다.

  • 분류 전체보기 (24)
    • 항해 99 (12)
    • 배운 것 (11)
    • 만든 것 (0)

Tag

프로그래머스, console.table, 크루스 칼, 패스키, 다익스트라, CBOR, Python, 미확인도착지, jwt, RDBMS, 항해99, Yubi key, TypeScript, console.assert, 크루스 칼 알고리즘, 오늘 배운 것, Javascript, CTAP, FIDO alliance, WebAuthn,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

«   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

방문자수Total

  • Today :
  • Yesterday :

Copyright © Kakao Corp. All rights reserved.

티스토리툴바