profile
Hello all ๐Ÿ‘‹๐Ÿป ๐Ÿ“London
post-thumbnail

js - event ์ข…๋ฅ˜

๐Ÿ‘‰๐Ÿผ Event referencehttps://developer.mozilla.org/ko/docs/Web/EventsDOM ์ด๋ฒคํŠธ๋Š” ๋ฐœ์ƒํ•œ ํฅ๋ฏธ๋กœ์šด ๊ฒƒ์„ ์ฝ”๋“œ์— ์•Œ๋ฆฌ๊ธฐ ์œ„ํ•ด ์ „๋‹ฌ๋ฉ๋‹ˆ๋‹ค. ๊ฐ ์ด๋ฒคํŠธ๋Š” Event ์ธํ„ฐํŽ˜์ด์Šค๋ฅผ ๊ธฐ๋ฐ˜์œผ๋กœํ•œ ๊ฐ์ฒด์— ์˜ํ•ด ํ‘œํ˜„๋˜๋ฉฐ

2022๋…„ 3์›” 18์ผ
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€
post-thumbnail

JS - hoisting/callback/Synchronous / Asynchronous

Synchronous : ์ •ํ•ด์ง„ ์ˆœ์„œ์— ๋”ฐ๋ผ ์ฝ”๋“œ ์‹คํ–‰, Execute the code block in order.Asynchronous: ์–ธ์ œ ์ฝ”๋“œ๊ฐ€ ์‹คํ–‰๋  ์ง€ ์˜ˆ์ธกํ•  ์ˆ˜ ์—†๋Š” ์ฝ”๋“œ It doesn't execute the code block in order.ex -

2021๋…„ 12์›” 20์ผ
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€
post-thumbnail

TIL - Call back function refactoring

์ฝœ๋ฐฑํ•จ์ˆ˜ ์•ˆ์— ์žˆ๋Š” ์ฝœ๋ฐฑํ•จ์ˆ˜ ์•ˆ์— ๋˜ ์กด์žฌํ•˜๋Š” ์ฝœ๋ฐฑํ•จ์ˆ˜ aka ์ฝœ๋ฐฑ์ง€์˜ฅaddEventListner๋ฅผ ์‚ฌ์šฉํ•˜๋‹ค๋ณด๋ฉด ์ฝœ๋ฐฑํ•จ์ˆ˜๋ฅผ ์‚ฌ์šฉํ•˜๊ฒŒ ๋˜๋Š”๋ฐ ์ฝœ๋ฐฑํ•จ์ˆ˜์˜ ์ค‘์ฒฉ์€ ๋ฉ”๋ชจ๋ฆฌ ์„ฑ๋Šฅ์„ ์ €ํ•˜์‹œํ‚ด๋”ฐ๋ผ์„œ ์‹คํ–‰ ํ•จ์ˆ˜๋Š” ๋”ฐ๋กœ ํ•จ์ˆ˜๋ฅผ ๋งŒ๋“ค์–ด์„œ ๋ถ„๋ฆฌ์‹œํ‚ค๋Š” ๊ฒƒ์ด ๋ฐ”๋žŒ์งํ•˜๋‹ค.๊ทธ๋ฆฌ๊ณ  ๋ถ„๋ฆฌํ•œ ํ•จ์ˆ˜๋ฅผ

2021๋…„ 12์›” 20์ผ
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€