내장 객체

primitives(원시) 값을 제외한 다른 내장 객체는 Object의 하위 집합입니다.

// string literal 로 원시 문자열 생성
const primitiveString = 'I am string';
typeof primitiveString // "string"
// String 이라는 내장 객체의 인스턴스가 아님
primitiveString instanceof String; // false

const stringObject = new String('I am string');
typeof stringObject; // "object"
stringObject instanceof String; // true

// 객체 하위 타입 확인
Object.prototype.toString.call(stringObject); // [object String]

Property

자바스크립트는 객체 기반 패러다임 상에서 설계 되었습니다 JavaScript is designed on a simple object-based paradigm. 하나의 객체는 프로퍼티의 집합이며, 하나의 프로퍼티는 이름과 값의 연관성(관계) 입니다 An object is a collection of properties, and a property is an association between a name (or key) and a value.

(MDN 문서에서 발췌)