들눈 2023. 10. 27. 09:31

DOM, BOM. CSSOM.

Browser 객체.

script Tag Position. defer, async.

this.

lethello: function() {
  setTimeOut(()=> {
    console.log(this); //local
  }, 1000);
  setTimeOut(function() {
    console.log(this);
  }, 1000); //window
}

let person={
  name : '코딩',
  printThis:  () => {
    console.log(this); //window. not a person.
  },
);


API

HTTP API


Sync, Async