본문 바로가기

프론트엔드 개발

검색하기
프론트엔드 개발
프로필사진 태나미

  • 전체보기 (92)
    • CS (6)
      • Network (2)
      • Algorithm (2)
    • Browser (7)
      • Browser (5)
      • 성능 최적화 (2)
    • Front-End (69)
      • Javascript (17)
      • Typescript (6)
      • React (1)
      • NextJs (11)
      • Vue.js (8)
      • Webpack (3)
      • TDD (5)
      • Error 해결 (7)
      • 기타 (7)
      • git (4)
    • 후기 (9)
      • 코어 자바스크립트 (7)
      • Teck Talk (2)
    • Care (0)
Guestbook
Notice
  • 처음이라면?
Recent Posts
Link
  • 제과제빵
  • 헬창코딩
  • 프로그래머 - 성우
  • 정보
«   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
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록js prototype (1)

프론트엔드 개발

prototype

JS에서 prototype이 필요한 이유 function Person(name, fir, sec, thi) { this.name = name; this.fir = fir; this.sec = sec; this.thi = thi; this.sum = function() { return this.fir + this.sec + this.thi; } } const kim = new Person('kim', 100, 100, 100); console.log(kim.sum()); // 300 kim.sum = function(){ return (this.fir + this.sec )/ this.thi } console.log(kim.sum()); // 2 const park = new Person('park', 5..

Front-End/Javascript 2021. 3. 19. 02:45
이전 Prev 1 Next 다음

Blog is powered by kakao / Designed by Tistory

티스토리툴바