์ „์ฒด ๊ธ€

์ „์ฒด ๊ธ€

    ํฌ์ธํ„ฐ, ์ด์ค‘ํฌ์ธํ„ฐ

    [C์–ธ์–ด] ํฌ์ธํ„ฐ, ์ด์ค‘ํฌ์ธํ„ฐ ๊ฐœ๋…, ์‹ค์Šต ์˜ˆ์ œ ์™„๋ฒฝ ์ดํ•ด (tistory.com)

    [๋“œ๋ฆผ์ฝ”๋”ฉ ์ž๋ฐ”์Šคํฌ๋ฆฝํŠธ] ๋น„๋™๊ธฐ promise

    https://youtu.be/JB_yU6Oe2eE ์ฃผ์„์€ ์ฝœ๋ฐฑ ์ง€์˜ฅ ์˜ˆ์ œ // class UserStorage { // loginUser(id, password, onSuccess, onFailure) { // setTimeout(() => { // if ( // (id === "ํ™๊ธธ๋™" && password === "์•„๋ฒ„์ง€") || // (id === "ํ™ฉ์ง„์ด" && password === "์ฒญ์‚ฐ๋ฆฌ") // ) { // onSuccess(id); // } else { // onFailure(new Error("not found")); // } // }, 2000); // } // getRoles(user, onSuccess, onFailure) { // setTimeout(() => { // if (..

    [๋“œ๋ฆผ์ฝ”๋”ฉ ์ž๋ฐ”์Šคํฌ๋ฆฝํŠธ]๋น„๋™๊ธฐ์˜ ์‹œ์ž‘ ์ฝœ๋ฐฑ์ง€์˜ฅ

    https://youtu.be/s1vpVCrT8f4 index.js class UserStorage { loginUser(id, password, onSuccess, onFailure) { setTimeout(() => { if ( (id === "ํ™๊ธธ๋™" && password === "์•„๋ฒ„์ง€") || (id === "ํ™ฉ์ง„์ด" && password === "์ฒญ์‚ฐ๋ฆฌ") ) { onSuccess(id); } else { onFailure(new Error("not found")); } }, 2000); } getRoles(user, onSuccess, onFailure) { setTimeout(() => { if (user === "ํ™๊ธธ๋™") { onSuccess({ name: "ํ™๊ธธ๋™", role: "์•„๋ฒ„..

    [Git]์ง€์—ญ ์ €์žฅ์†Œ์˜ ํ”„๋กœ์ ํŠธ๋ฅผ ์—…๋กœ๋“œํ•˜๋ ค๋‹ค defualt ๋ธŒ๋Ÿฐ์น˜๋Š” master๊ฐ€ ์•„๋‹ˆ๋ผ origin์ธ ๊ฑด์— ๊ด€ํ•˜์—ฌ

    [Git]์ง€์—ญ ์ €์žฅ์†Œ์˜ ํ”„๋กœ์ ํŠธ๋ฅผ ์—…๋กœ๋“œํ•˜๋ ค๋‹ค defualt ๋ธŒ๋Ÿฐ์น˜๋Š” master๊ฐ€ ์•„๋‹ˆ๋ผ origin์ธ ๊ฑด์— ๊ด€ํ•˜์—ฌ

    ๊นƒํ—ˆ๋ธŒ(Github) 2. ์›๊ฒฉ ์ €์žฅ์†Œ ๋งŒ๋“ค๊ธฐ + ์ง€์—ญ ์ €์žฅ์†Œ์˜ ํ”„๋กœ์ ํŠธ๋ฅผ ์—…๋กœ๋“œ ํ•˜๊ธฐ : ๋‚ด ํ”„๋กœ์ ํŠธ๋ฅผ github์— ์˜ฌ๋ฆฌ๊ธฐ (tistory.com) [ 05.23 ] git (1) - git upload procedure / ๋‚ด ์ž‘์—…๋ฌผ git hub์— ์—…๋กœ๋“œ ํ•ด๋ณด๊ธฐ. (velog.io) [ 05.23 ] git (1) - git upload procedure / ๋‚ด ์ž‘์—…๋ฌผ git hub์— ์—…๋กœ๋“œ ํ•ด๋ณด๊ธฐ. ๊ฐœ๋ฐœ์‹œ์ž‘ํ•˜๊ณ  ์ˆ˜์—†์ด ๋“ค์–ด๋ดค์ง€๋งŒ ์ •ํ™•ํžˆ ๋ชฐ๋ž๋˜ git ์ด ๋ฌด์—‡์ธ์ง€ ๋‹ค๋ค„๋ณด๊ฒ ๋‹ค.git : ์ €์žฅ ๊ด€๋ฆฌ์†Œ ๊ฐœ๋….์ปดํ“จํ„ฐ์˜ ์šฉ๋Ÿ‰์€ ์ •ํ•ด์ ธ ์žˆ๋Š”๋ฐ ์ž‘์—…๋ฌผ์€ ๊ณ„์† ๋Š˜์–ด๊ฐ„๋‹ค๋ฉด ์–ด๋–ป๊ฒŒ ๋ ๊นŒ?์ปดํ“จํ„ฐ๋Š” ๋А๋ ค์งˆํ…Œ๊ณ  velog.io [GitHub] ๊นƒํ—ˆ๋ธŒ์— ํ”„๋กœ์ ํŠธ ์˜ฌ๋ฆฌ๊ธฐ (tistory.com) cd ํ”„๋กœ์ ํŠธ ํด๋” git ..

    60. ์˜ˆ์™ธ ์ฒ˜๋ฆฌํ•˜๊ธฐ(1)

    60. ์˜ˆ์™ธ ์ฒ˜๋ฆฌํ•˜๊ธฐ(1)

    https://youtu.be/Os_o-7eGu7Y ์ฑ•ํ„ฐ 12 ์˜ˆ์™ธ ์ฒ˜๋ฆฌํ•˜๊ธฐ ์ด ์žฅ์˜ ํ•ต์‹ฌ ๊ฐœ๋… ๊ตฌ์กฐ์  ์˜ˆ์™ธ ์ฒ˜๋ฆฌ๊ฐ€ ๋ฌด์—‡์ธ์ง€ ์ดํ•ดํ•œ๋‹ค try~catch~finally ๋ฌธ์„ ์ด์šฉํ•œ ์˜ˆ์™ธ ์ฒ˜๋ฆฌ ๋ฐฉ๋ฒ•์„ ์ตํžŒ๋‹ค System.Exception ํด๋ž˜์Šค๋ฅผ ์ดํ•ดํ•œ๋‹ค throw ๋ฌธ์„ ์ด์šฉํ•˜์—ฌ ์˜ˆ์™ธ๋ฅผ ๋˜์ง€๋Š” ๋ฐฉ๋ฒ•์„ ์ตํžŒ๋‹ค ์‚ฌ์šฉ์ž ์ •์˜ ํด๋ž˜์Šค๋ฅผ ์ •์˜ํ•˜๊ณ  ์‚ฌ์šฉํ•˜๋Š” ๋ฐฉ๋ฒ•์„ ์ตํžŒ๋‹ค ์˜ˆ์™ธ์— ๋Œ€ํ•˜์—ฌ ์ •์˜: ํ”„๋กœ๊ทธ๋ž˜๋จธ๊ฐ€ ์ƒ๊ฐํ•˜๋Š” ์‹œ๋‚˜๋ฆฌ์˜ค์—์„œ ๋ฒ—์–ด๋‚˜๋Š” ์‚ฌ๊ฑด, ์ด๊ฒƒ์„ ์˜ˆ์™ธ๋ผ๊ณ  ๋ถ€๋ฅธ๋‹ค. ์˜ˆ1) ์ˆซ์ž๊ฐ€ ์ž…๋ ฅ๋˜์–ด์•ผ ํ•˜๋Š” ๋ณ€์ˆ˜์— ๋ฌธ์ž์—ด ์ž…๋ ฅ ์‹œ๋„ ์˜ˆ2) ํŒŒ์ผ์„ ์ €์žฅ์‹œ ํ•˜๋“œ๋””์Šคํฌ ์šฉ๋Ÿ‰ ์†Œ์ง„ ์˜ˆ์™ธ์ฒ˜๋ฆฌ : ํ”„๋กœ๊ทธ๋žจ์˜ ์˜ค๋ฅ˜๋‚˜ ๋‹ค์šด์œผ๋กœ ์ด์–ด์ง€์ง€ ์•Š๋„๋ก ์ ์ ˆํ•˜๊ฒŒ ์ฒ˜๋ฆฌํ•˜๋Š” ๊ฒƒ using System; using System.Collections; using..

    [์ž๋ฐ”์Šคํฌ๋ฆฝํŠธ ์ค‘๊ธ‰] call, apply, bind

    [์ž๋ฐ”์Šคํฌ๋ฆฝํŠธ ์ค‘๊ธ‰] call, apply, bind

    https://youtu.be/KfuyXQLFNW4 call, apply, bind ์ž๋ฐ”์Šคํฌ๋ฆฝํŠธ์—์„œ์˜ ํ•จ์ˆ˜ ํ˜ธ์ถœ ๋ฐฉ์‹ function add(a: number, b: number): number { return a + b; } console.log(add(10, 20)); console.log(add.apply(null, [10, 20])); console.log(add.call(null, 10, 20)); console.log(add.bind(null, 10, 20)()); call, apply, bind : ํ•จ์ˆ˜ ํ˜ธ์ถœ ๋ฐฉ์‹๊ณผ ๊ด€๊ณ„์—†์ด this๋ฅผ ์ง€์ •ํ•  ์ˆ˜ ์žˆ์Œ javascript์˜ ํ•จ์ˆ˜๋Š” ๊ฐ์ž ์ž์‹ ๋งŒ์˜ this๋ผ๋Š” ๊ฒƒ์„ ์ •์˜ํ•œ๋‹ค. ๊ธฐ๋ณธ์ ์œผ๋กœ this๋Š” window์ด์ง€๋งŒ this๋Š” ๊ฐ์ฒด ๋‚ด๋ถ€, ๊ฐ์ฒด ๋ฉ”..