Jess2.xyz

๐Ÿ‘‹@Jess2
๐Ÿ‘ฉ๐Ÿปโ€๐Ÿ’ปFrontend Developer

GitHubFacebookLinkedIn

[Essay] 4๋…„์ฐจ ํ”„๋ก ํŠธ์—”๋“œ ๊ฐœ๋ฐœ์ž์˜ 2021 ํšŒ๊ณ 

ํ˜„์žฌ ๋‚ ์งœ ๊ธฐ์ค€์œผ๋กœ ๊ฒฝ๋ ฅ ๋งŒ 3๋…„์ด ์กฐ๊ธˆ ์ง€๋‚œ 4๋…„์ฐจ ์›น ํ”„๋ก ํŠธ์—”๋“œ ๊ฐœ๋ฐœ์ž์˜ ์ง€๋‚œ 2021๋…„ ํšŒ๊ณ ๋ก์„ ์ž‘์„ฑํ•ด๋ณธ๋‹ค. ๊ฐœ์ธ์ ์œผ๋กœ๋Š” 3~4๋…„์ฐจ๊ฐ€ ๊ฐ€์žฅ ์• ๋งคํ•œ ์‹œ๊ธฐ ์ค‘ ํ•˜๋‚˜์ธ ๊ฒƒ ๊ฐ™๋‹ค. ์ด์ œ ๋” ์ด์ƒ ์‹ ์ž…๋„ ์•„๋‹ˆ๊ณ  ๊ทธ๋ ‡๋‹ค๊ณ  ์‹œ๋‹ˆ์–ด๋„ ์•„๋‹ˆ๋‹ค. ๊ฐœ์ธ์ ์œผ๋กœ ๋Š๋ผ๊ธฐ์—๋Š” ์•„์ง ๋งŽ์ด ๋ถ€์กฑํ•˜๊ณ  ๊ณต๋ถ€ํ•  ๊ฒŒ ๋„ˆ๋ฌด ๋งŽ์€๋ฐ ํšŒ์‚ฌ์—๋Š” ๋ญ”๊ฐ€๋ฅผ ๋ณด์—ฌ์ค˜์•ผ ํ•  ๊ฒƒ ๊ฐ™์€ ๋ถ€๋‹ด๊ฐ์ด ๋ชฐ๋ ค์˜ค๋Š” ์‹œโ€ฆ

[JavaScript] ์ฐธ์กฐํ• ๋‹น๊ณผ ๊นŠ์€๋ณต์‚ฌ, ์–•์€๋ณต์‚ฌ

์ฐธ์กฐ ํ• ๋‹น, ์–•์€ ๋ณต์‚ฌ, ๊นŠ์€ ๋ณต์‚ฌ์— ๊ด€ํ•ดโ€ฆ ์›๋ž˜ ์•Œ๊ณ  ์žˆ๋˜ ๋‚ด์šฉ ๊ธฐ์กด์— ์ •๋ฆฌํ–ˆ๋˜ ํฌ์ŠคํŒ… ์ฐธ์กฐ ํ• ๋‹น ์ฃผ์†Œ๊ฐ’์„ ๋ณต์‚ฌํ•˜๋Š” ๊ฒƒ ์–•์€ ๋ณต์‚ฌ (Shallow Copy) ๋ณต์‚ฌ๋˜์–ด ์ƒˆ๋กœ์šด ๋ฉ”๋ชจ๋ฆฌ๋กœ ํ• ๋‹น์ด ๋˜์ง€๋งŒ ์†์„ฑ์œผ๋กœ ๊ฐ–๊ณ  ์žˆ๋˜ ๊ฐ์ฒด๋‚˜ ๋ฐฐ์—ด์€ ์ฃผ์†Œ๊ฐ’์ด ๋ณต์‚ฌ๋˜๋Š” ํ˜•ํƒœ. ex) spread operator, object assign ๊นŠ์€ ๋ณต์‚ฌ (Deep Copy) ๋ณตโ€ฆ

[Seminar] 2021 NAVER DEVIEW ์Šฌ๊ธฐ๋กœ์šด ์›จ์ผ์•ฑ ๊ฐœ๋ฐœ

2021 NAVER DEVIEW <์Šฌ๊ธฐ๋กœ์šด ์›จ์ผ์•ฑ ๊ฐœ๋ฐœ> ์„ธ์…˜ ๋“ค์œผ๋ฉฐ ์ •๋ฆฌํ•œ ๋‚ด์šฉ 1. ์›จ์ผ ์•ฑ์ด๋ž€? Whale platform(Whale ๋ธŒ๋ผ์šฐ์ €๋‚˜ Whale OS)์—์„œ ๋™์ž‘ํ•˜๋Š” ํ™•์žฅ์•ฑ Whale Platform Chromium ๊ธฐ๋ฐ˜ ์›น ์„œ๋น„์Šค ํ”Œ๋žซํผ Chromium ์˜คํ”ˆ์†Œ์Šค + Whale๋งŒ์˜ ์„œ๋น„์Šค Chromium ๊ธฐ๋Šฅ์œผ๋กœ๋งŒ ๊ตฌ์„ฑ๋œ ์•ฑ์€ ๋‹ค๋ฅธ ๋ธŒ๋ผ์šฐ์ €โ€ฆ

[JavaScript] OOP - 3. Prototypes

0. Table of Contents What is OOP Objects Prototypes ๐Ÿ‘‰ Current Page Prototypical Inheritance (TBD) ES6 Classes (TBD) ES6 Modules (TBD) 1. ์ƒ์† (Inheritance) ์ƒ์†์€ ๊ฐ์ฒด๊ฐ€ ๋‹ค๋ฅธ ๊ฐ์ฒด์˜ ์†์„ฑ๊ณผ ๋ฉ”์„œ๋“œ๋ฅผ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ๋„๋ก ํ•˜๋Š” OOP์˜ ํ•ต์‹ฌโ€ฆ

[JavaScript] OOP - 2. Objects

0. Table of Contents What is OOP Objects ๐Ÿ‘‰ Current Page Prototypes Prototypical Inheritance (TBD) ES6 Classes (TBD) ES6 Modules (TBD) 1. Creating Objects ์ค‘๊ด„ํ˜ธ ()๋ฅผ ๊ฐ์ฒด ๋ฆฌํ„ฐ๋Ÿด ๊ตฌ๋ฌธ์ด๋ผ๊ณ  ํ•œ๋‹ค. ๊ฐ์ฒด๋Š” key-value ์Œ์„ ๊ฐ€์ง„โ€ฆ

[etc.] ํ•ด์‹œ ํ…Œ์ด๋ธ”๊ณผ ํ•ด์‹œ ํ•จ์ˆ˜

ํ•ด์‹œ ํ…Œ์ด๋ธ” (Hash Table) F(key) โ†’ Hash Code โ†’ Index โ†’ Value ๊ฒ€์ƒ‰ํ•˜๊ณ ์ž ํ•˜๋Š” key๊ฐ’์„ ์ž…๋ ฅ๋ฐ›์•„์„œ ํ•ด์‹œ ํ•จ์ˆ˜๋ฅผ ๋Œ๋ ค์„œ ๋ฐ˜ํ™˜๋ฐ›์€ ํ•ด์‹œ ์ฝ”๋“œ๋ฅผ ๋ฐฐ์—ด index๋กœ ํ™˜์‚ฐ์„ ํ•ด์„œ ๋ฐ์ดํ„ฐ์— ์ ‘๊ทผํ•˜๋Š” ๋ฐฉ์‹์˜ ์ž๋ฃŒ๊ตฌ์กฐ์ด๋‹ค ์—ฌ๊ธฐ์„œ ๊ฐ’์€ ๋ฌธ์ž์—ด์ด ๋  ์ˆ˜๋„ ์žˆ๊ณ  ์ˆซ์ž, ํŒŒ์ผ ๋ฐ์ดํ„ฐ๋„ ๋  ์ˆ˜ ์žˆ๋‹ค. ํ•ด์‹œ ํ•จ์ˆ˜๋Š” ์–ด๋–ค ํŠน์ •ํ•œ ๊ทœ์น™์„ ์ด์šฉํ•ด์„œโ€ฆ

[JavaScript] OOP - 1. What is OOP

0. Table of Contents What is OOP ๐Ÿ‘‰ Current Page Objects Prototypes Prototypical Inheritance (TBD) ES6 Classes (TBD) ES6 Modules (TBD) 1. What is OOP? OOP(๊ฐ์ฒด ์ง€ํ–ฅ ํ”„๋กœ๊ทธ๋ž˜๋ฐ)๋ž€, ํ•จ์ˆ˜๋ณด๋‹ค๋Š” ๊ฐ์ฒด๋ฅผ ์ค‘์‹ฌ์œผ๋กœ ํ•˜๋Š” ํ”„๋กœ๊ทธ๋ž˜๋ฐ ์Šคํƒ€์ผ, โ€ฆ

[JavaScript] ๋ฐฐ์—ด ๊ณ ์ฐจ ํ•จ์ˆ˜

0. Index ๊ณ ์ฐจ ํ•จ์ˆ˜๋ž€? ๋งŽ์ด ์‚ฌ์šฉ๋˜๋Š” ๋ฐฐ์—ด ๊ณ ์ฐจ ํ•จ์ˆ˜๋“ค forEach map filter reduce some every find findIndex fill sort includes ๋‹ค์–‘ํ•œ ๊ณ ์ฐจ ํ•จ์ˆ˜๋“ค ์‹œ๊ฐํ™” ๋น„๊ต ์„ฑ๋Šฅ ๋น„๊ต 1. ๊ณ ์ฐจ ํ•จ์ˆ˜๋ž€? ํ•จ์ˆ˜๋ฅผ ์ธ์ž๋กœ ์ „๋‹ฌ๋ฐ›๊ฑฐ๋‚˜ ํ•จ์ˆ˜๋ฅผ ๊ฒฐ๊ณผ๋กœ ๋ฐ˜ํ™˜ํ•˜๋Š” ํ•จ์ˆ˜ 2. ๋งŽ์ด ์‚ฌ์šฉ๋˜๋Š” ๋ฐฐ์—ด ๊ณ ์ฐจ ํ•จ์ˆ˜๋“ค 2-1. Arโ€ฆ

[WEB] CORS : ๊ต์ฐจ ์ถœ์ฒ˜ ๋ฆฌ์†Œ์Šค ๊ณต์œ  (Cross-Origin Resource Sharing)

ํ•œ ์‚ฌ์ดํŠธ์—์„œ ์ฃผ์†Œ๊ฐ€ ๋‹ค๋ฅธ ์„œ๋ฒ„๋กœ ์š”์ฒญ์„ ๋ณด๋‚ผ ๋•Œ CORS ๊ด€๋ จ ์—๋Ÿฌ๊ฐ€ ๋ฐœ์ƒํ•œ๋‹ค. https://aaa.com ์—์„œ https://bbb.com/api/ccc API๋กœ ์ •๋ณด๋ฅผ ๋ฐ›์•„์˜ค๊ธฐ ์œ„ํ•ด โ€˜ํ”„๋ก ํŠธโ€™์—์„œ HTTP ์š”์ฒญ์„ ๋ณด๋ƒˆ์„ ๋•Œ ๋ฏธ๋ฆฌ ํŠน์ • ์„ค์ •์„ ํ•ด์ฃผ์ง€ ์•Š์œผ๋ฉด CORS ๊ด€๋ จ ์—๋Ÿฌ๋กœ ๋ง‰ํžˆ๊ฒŒ ๋œ๋‹ค. โ€˜PostManโ€™ ๊ฐ™์€ ๊ฒƒ์œผ๋กœ ๋˜‘๊ฐ™์€ ์š”์ฒญ์„ ๋ณด๋‚ด๊ฑฐ๋‚˜ โ€˜๋ฐฑโ€ฆ

[JavaScript] ๊นŠ์€๋ณต์‚ฌ(Deep Copy)์™€ ์–•์€๋ณต์‚ฌ(Shallow Copy)

1. ์ฐธ์กฐ ํ• ๋‹น ์— ์„ ํ• ๋‹นํ•  ๋•Œ, ์ฃผ์†Œ๊ฐ’์ด ํ• ๋‹น๋˜๋Š” ๊ฒƒ์ด๊ธฐ ๋•Œ๋ฌธ์— ํ•œ ๊ฐ์ฒด์˜ ๊ฐ’์„ ์ˆ˜์ •ํ•˜๋ฉด ๋‹ค๋ฅธ ๊ฐ์ฒด์˜ ๊ฐ’ ๋˜ํ•œ ๋™์ผํ•˜๊ฒŒ ๋ณ€ํ•œ๋‹ค. 2. ์–•์€ ๋ณต์‚ฌ - Shallow Copy 2-1. Object.assign() ๋ฉ”์†Œ๋“œ๋Š” ์—ด๊ฑฐํ•  ์ˆ˜ ์žˆ๋Š” ํ•˜๋‚˜ ์ด์ƒ์˜ ์ถœ์ฒ˜ ๊ฐ์ฒด(source)๋กœ๋ถ€ํ„ฐ ๋Œ€์ƒ ๊ฐ์ฒด(target)๋กœ ์†์„ฑ์„ ๋ณต์‚ฌํ•  ๋•Œ ์‚ฌ์šฉํ•˜๊ณ  ๋Œ€์ƒ ๊ฐ์ฒด(targeโ€ฆ