yyeon111

  • 홈
  • 태그

getownproperydescriptor 1

Object methods

Object 또한 빌트인 객체로, new 키워드를 사용해서 인스턴스를 만들 수 있다. 하지만, 모든 객체의 부모는 Object이기 때문에, 이미 Object의 instance다. 특이점은, new 키워드를 통해 데이터를 초기화하면, 데이터 타입에 따라 prototype으로 분리한다. 💡 prototype으로 분리된다는 것이지, 데이터 타입이 바뀐다는 것이 아님을 유의하자. const arr = new Object([1, 2, 3]); console.log(arr, typeof arr); // [Array]object const num = new Object(1); console.log(num, typeof num); // [Number]object const bool = new Object(true); ..

TIL/JS 2023.03.24
이전
1
다음
더보기
프로필사진

  • 분류 전체보기 (63)
    • TIL (56)
      • JS (49)
      • Node.js (2)
      • HTML (1)
      • CSS (0)
      • git (2)
      • Python (1)
    • WIL (1)
    • 알고리즘 (6)

Tag

CLASS, iterable, 디스트럭쳐링, map, 함수, ErrorBubbling, error, Javascript #프로그래머스 #알고리즘, Set, preventextensions, getownpropertydescriptors, getownproperydescriptor, JSON, javascript, defineproperties, defineproperty, RangeError, function, array, object,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • gitHub
  • Twitter

Archives

Calendar

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

티스토리툴바