본문 바로가기

개발스터디일지

검색하기
개발스터디일지
프로필사진 autumn_k

  • 분류 전체보기 (99)
    • 항해 99 (57)
      • TIL & WIL (51)
      • CS 스터디 (6)
    • 성장일지 (18)
    • 프론트엔드 (20)
      • html (1)
      • CSS (0)
      • Javascript (10)
      • React (7)
      • TypeScript (1)
      • python (1)
    • Github (2)
    • 자료구조 (0)
Guestbook
Notice
Recent Posts
Recent Comments
Link
«   2026/02   »
일 월 화 수 목 금 토
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
Tags
  • 클론코딩
  • AWS
  • react
  • javascript
  • DoM
  • Firebase
  • 에어비엔비
  • 리액트
  • python
  • 개발자
  • 에러해결
  • 항해99
  • Git
  • 실전프로젝트
  • 프론트엔드
  • WIL
  • 알고리즘
  • til
  • 프로그래머스
  • frontend
  • 인스타그램
  • CS
  • 미니프로젝트
  • 자바스크립트
  • Ref
  • 파이어베이스
  • 카카오맵
  • 리덕스
  • CS스터디
  • 네트워크
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록prototype (1)

개발스터디일지

[Javascript] 생성자함수(prototype) / this / ES6 Classes / 인스턴스

똑같은 의미의 코드를 1.생성자함수(prototype) / 2. ES6 Classes 이용하여 만들면 아래와 같다. 생성자함수(prototype)를 이용 ES6 Classes 이용 function User(first, last) { this. firstName = first this. lastName = last } User.prototype.getFullName = function(){ return `${this.firstName} ${this.lastName}` } const grandma = new User(song, mino) console.log(grandma.getFullName()) //song mino Class User { constructor(first, last) { this.firs..

프론트엔드/Javascript 2022. 4. 12. 10:32
이전 Prev 1 Next 다음

Blog is powered by kakao / Designed by Tistory

티스토리툴바