자바스크립트에서 this는 그 상황마다 가리키는 값이 다름. 1. window 2. 자기 자신 3. 앞에 붙은 object 4. ??? 이렇게 크게 3가지로 나뉨 1. 일반적인(global scope) 상황에서 this는 window를 가리킴. this.room = 'window table'; // 콘솔창에 this만 쳐도 자동으로 window가 출력. 2. object안에서 this는 자기 자신을 가리킴. this.table = 'window table'; let myRoom = { table: 'my table', }; console.log(this.table) // window table console.log(myRoom.table) // my table console.log(this.myRoom...