์ ์ฒด ๊ธ
ํฌ์ธํฐ, ์ด์คํฌ์ธํฐ
[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์ธ ๊ฑด์ ๊ดํ์ฌ
๊นํ๋ธ(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)
https://youtu.be/Os_o-7eGu7Y ์ฑํฐ 12 ์์ธ ์ฒ๋ฆฌํ๊ธฐ ์ด ์ฅ์ ํต์ฌ ๊ฐ๋ ๊ตฌ์กฐ์ ์์ธ ์ฒ๋ฆฌ๊ฐ ๋ฌด์์ธ์ง ์ดํดํ๋ค try~catch~finally ๋ฌธ์ ์ด์ฉํ ์์ธ ์ฒ๋ฆฌ ๋ฐฉ๋ฒ์ ์ตํ๋ค System.Exception ํด๋์ค๋ฅผ ์ดํดํ๋ค throw ๋ฌธ์ ์ด์ฉํ์ฌ ์์ธ๋ฅผ ๋์ง๋ ๋ฐฉ๋ฒ์ ์ตํ๋ค ์ฌ์ฉ์ ์ ์ ํด๋์ค๋ฅผ ์ ์ํ๊ณ ์ฌ์ฉํ๋ ๋ฐฉ๋ฒ์ ์ตํ๋ค ์์ธ์ ๋ํ์ฌ ์ ์: ํ๋ก๊ทธ๋๋จธ๊ฐ ์๊ฐํ๋ ์๋๋ฆฌ์ค์์ ๋ฒ์ด๋๋ ์ฌ๊ฑด, ์ด๊ฒ์ ์์ธ๋ผ๊ณ ๋ถ๋ฅธ๋ค. ์1) ์ซ์๊ฐ ์ ๋ ฅ๋์ด์ผ ํ๋ ๋ณ์์ ๋ฌธ์์ด ์ ๋ ฅ ์๋ ์2) ํ์ผ์ ์ ์ฅ์ ํ๋๋์คํฌ ์ฉ๋ ์์ง ์์ธ์ฒ๋ฆฌ : ํ๋ก๊ทธ๋จ์ ์ค๋ฅ๋ ๋ค์ด์ผ๋ก ์ด์ด์ง์ง ์๋๋ก ์ ์ ํ๊ฒ ์ฒ๋ฆฌํ๋ ๊ฒ using System; using System.Collections; using..
[์๋ฐ์คํฌ๋ฆฝํธ ์ค๊ธ] 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๋ ๊ฐ์ฒด ๋ด๋ถ, ๊ฐ์ฒด ๋ฉ..