credit ๊น๋ฒ๊ทธ https://www.youtube.com/watch?v=7gKtNC3b_S8html์ ์ค์ฒฉ๋์ด์๋ ๊ตฌ์กฐ.ex) div,body,html eventListner์ด ๋ฑ๋ก๋์ด์๋ค. => ์ด๋ฒคํธ ์ค์ฒฉ!div ํด๋ฆญ์, div์ ๋ถ๋ชจ ํ๊ทธ๋ค์ ๋ฑ๋ก๋
This keyword. 1. this๋ ์ค๋ธ์ ํธ ๋ด์ ๋ฉ์๋(ํจ์)์์ ์ฌ์ฉํ์ ๋, ๊ทธ ๋ฉ์๋๋ฅผ ๋ด๊ณ ์๋์ค๋ธ์ ํธ๋ฅผ ์ถ๋ ฅํด์ค๋ค A์ค๋ธ์ ํธ์์ console.log(this)๋ฅผ ์ถ๋ ฅํ๋ ํจ์๊ฐ ์๋ค๋ฉด, this๋ ๊ทธ A์ค๋ธ์ ํธ๋ฅผ ๊ฐ๋ฅดํจ๋ค. ๋ง์ฐฌ๊ฐ์ง๋ก ์ผ๋ฐํจ์
https://developer.mozilla.org/ko/docs/Web/JavaScript/Reference/Global_Objects/Array/splice๋ฐฐ์ด์ ๊ธฐ์กด ์์๋ฅผ ์ญ์ ๋๋ ๊ต์ฒดํ๊ฑฐ๋ ์ ์์๋ฅผ ์ถ๊ฐํ์ฌ ๋ฐฐ์ด์ ๋ด์ฉ์ ๋ณ๊ฒฝ๋ฐฐ์ด์ ํน์ ๊ตฌ๊ฐ์ ์ถ
โ๏ธ in (properet existence check) โ๏ธ For...in โ๏ธ For...of
object literal syntaxconst obj1= {} object constructor syntaxconst obj2 = new Object()object.create methodclass ES6It calls "Constuctor function"It cr
A factory function is a function that returns an object and can be reused to make multiple object instances.It can also have parameters allowing us to
Getters can perform an action on the data when getting a property.Getters can return different values using conditionals.In a getter, we can access th
โ๏ธ JavaScript parsing & execution 1)๋ ๋๋ง ์์ง์ด HTML ํ์ฑ ํ๋ฉฐ ๋์ ๋ง๋ค์ด ๋๊ฐ๋ค๊ฐ CSSํ์ผ ๋ก๋ํ๋ style์ด๋ linkํ์ผ ๋ง๋๋ฉด DOM์์ฑ ์ค๋จํ๋ ๊ฒ์ฒ๋ผ, ๋ ๋๋ง ์์ง์ด HTML ํ์ฑ ํ๋ฉฐ ๋์ ๋ง๋ค์ด ๋๊ฐ๋ค๊ฐJSํ์ผ์ ๋ก
๋ธ๋ผ์ฐ์ ๋ html, css , JS, img file ๋ฑ ๋ ๋๋ง์ ํ์ํ ๋ฆฌ์์ค๋ฅผ ์๋ฒ๋ก ์์ฒญํ๊ณ ์๋ต๋ฐ๋๋ค. ๋ธ๋ผ์ฐ์ ๋ ๋๋ง ์์ง์ ์๋ฒ๋ก ๋ถํฐ ์๋ต๋ html, css๋ฅผ ํ์ฑํ์ฌ DOM๊ณผ CSSOM ์์ฑํ๊ณ ์ด๋ค์ ๊ฒฐํฉํ์ฌ ๋ ํฐ๋๋ฆฌ๋ฅผ ์์ฑํ๋ค. JS ์์ง์ ์๋ฒ๋ก