mystery

    static 1

    class - static method, property

    1. static method prototype 프로퍼티가 아닌 클래스 함수 자체에 메서드를 설정할 수 있습니다. 이런 메서드를 static method ( 정적 메서드 ) 라고 부릅니다. class Animal { static staticMethod(){ console.log(this === Animal) } } class Animal {} Animal.staticMethod = function(){ console.log(this === Animal) } Animal.staticMethod() // true class 내에서 static 메소드를 선언 하는 것은 메서드를 프로퍼티 형태로 직접 할당하는 것과 같습니다. static 메소드는 호출시 class명.method( ) 의 형태로 사용하게 되며, ..

    Frontend/JS.info 정리 2022.06.22
    이전
    1
    다음
    더보기
    프로필사진

    공부는 평생 하는 거라 했습니다.

    • make it happen (124)
      • 프로젝트 (5)
      • Frontend (80)
        • React (16)
        • TanStack Query (2)
        • Redux (5)
        • TS (7)
        • JS (6)
        • JS.info 정리 (44)
      • CS (1)
      • Network (1)
      • Infra (1)
      • Data Structure (2)
      • Algorithm (2)
      • Testing (2)
      • 알아두면 좋은 꿀팁들 (3)
      • 목표와 회고 (17)
      • 나를 죽이지 못한 삽질들 (5)
      • 개발 환경 (3)
      • Git (2)

    최근댓글

    Calendar

    «   2025/07   »
    일 월 화 수 목 금 토
    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.

    • github

    티스토리툴바