item10

// String은 자기 자신이 유일한 존재임.
> "hello" === new String("hello")
false
> new String("hello") === new String("hello") false

// 기본형에 할당하면 기존 속성이 사라짐.
> x = "hello"
> x.language = 'English' 'English'
> x.language
undefined

item11

interface Room { 
			numDoors: number; 
			ceilingHeightFt: number;
}

const r: Room = {
      numDoors: 1,
      ceilingHeightFt: 10,
      elephant: 'present',
    // ~~~~~~~~~~~~~~~~~~ Object literal may only specify known properties,
// and 'elephant' does not exist in type 'Room' };
const obj = { 
			numDoors: 1,
			ceilingHeightFt: 10,
      elephant: 'present',
    };

const r: Room = obj; // OK