본문 바로가기

코딩쌀롱

검색하기
코딩쌀롱
프로필사진 이브✱

  • 모든 글 (126)
    • 개발공부 (70)
    • 책 (10)
    • 회고 (43)
      • 하루 기록 (25)
      • 회고 (18)
    • 아무것 (3)
    • 여행 (0)
Guestbook
Recent Posts
Recent Comments
Today
Total
«   2025/06   »
일 월 화 수 목 금 토
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
Archives
Tags
  • 프로그래머스
  • Promise
  • React
  • input
  • node.js
  • Prototype
  • bind
  • closure
  • TS
  • 알고리즘
  • 비동기
  • 코드스쿼드
  • 회고
  • array
  • 링크드 리스트
  • javascript
  • 코어자바스크립트
  • leetcode
  • 생성자
  • 아티클
more
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록switch (1)

코딩쌀롱

Mission1 (prototype, constructor, switch, Math, rest parameter)

prototype prototype은 말 그대로 객체의 원형. 함수는 객체 → 생성자도 객체 → 객체는 property를 가질 수 있고, prototype이라는 property를 가진다. (생성자 함수의 프로퍼티로 prototype을 갖는다) prototype에 저장된 속성들은 생성자를 통해서 객체가 만들어질 때 그 객체에 연결된다. function Ultra() {} Ultra.prototype.ultraProp = true; function Super() {} var t = new Ultra(); t.ultraProp = 4; Super.prototype = t; function Sub() {} Sub.prototype = new Super(); var o = new Sub(); console.log..

개발공부 2020. 12. 16. 12:07
Prev 1 Next

Blog is powered by kakao / Designed by Tistory

티스토리툴바