์ „์ฒด ๊ธ€

๐Ÿ‘ฉ‍๐Ÿ’ป java, mysql, android, php, javascript๋ฅผ ๋‹ค๋ฃน๋‹ˆ๋‹ค
๊ฐ์ฒด๋ž€? ์„œ๋กœ ์—ฐ๊ด€๋œ ๋ณ€์ˆ˜์™€ ํ•จ์ˆ˜๋ฅผ ๊ทธ๋ฃนํ•‘ํ•˜๊ณ  ์ด๋ฆ„์„ ๋ถ™์ธ๊ฒƒ! let memberArray = ['์ง€์€','์—ฐ๋ฏธ','๋ฝ€๋ฏธ']; console.log('memberArray[0]',memberArray[0]);// '์ง€์€' let memberObject = { mom:'์—ฐ๋ฏธ', daughter:'์ง€์€', dog:'๋ฝ€๋ฏธ' } memberObject.daughter = '๊ท€์—ฌ์šด ์ง€์œผ๋‹ˆ' //์žฌํ• ๋‹น์„ ํ•ด์คŒ delete memberObject.mom; //mom ์ด๋ผ๋Š” ์†์„ฑ์„ ์‚ญ์ œ console.log('after delete memberObject.mom', memberObject.mom); //undefined console.log("memberObject.daughter",memberObject.daught..
๋ฌธ์ œ๋Š” ๋‹ค์Œ๊ณผ ๊ฐ™๋‹ค. ์•„๋ฉ”๋ฆฌ์นด๋…ธ ์นดํŽ˜๋ผ๋–ผ ์ด์ค‘์—์„œ function handleClick() { // ์•„๋ž˜์˜ ๋นˆ ์นธ(____)์„ ์ฑ„์šฐ์„ธ์š”. // console.log("working?"); let currentMenu = ____; // TODO console.log(currentMenu + "๋ฅผ ํด๋ฆญํ•˜์…จ์Šต๋‹ˆ๋‹ค."); ์„ ๊ตฌํ•ด์•ผ ํ•œ๋‹ค. ํ™”๋ฉด์—๋Š” ์•„๋ฉ”๋ฆฌ์นด๋…ธ์™€ ์นดํŽ˜๋ผ๋–ผ ๋ฒ„ํŠผ์ด ์žˆ๊ณ , "๋ฒ„ํŠผ์„ ๋ˆ„๋ฅผ ๋•Œ, ์˜ˆ๋ฅผ ๋“ค์–ด ์•„๋ฉ”๋ฆฌ์นด๋…ธ๋ฅผ ํด๋ฆญํ•˜์…จ์Šต๋‹ˆ๋‹ค." ๋ผ๋Š” ์‹์œผ๋กœ ์ฝ˜์†”์— ์ถœ๋ ฅ๋˜์–ด์•ผ ํ•œ๋‹ค. ํžŒํŠธ๊ฐ€ ์žˆ๋‹ค. ๋ฐ”๋กœ function handleClick(event) { console.log(event); } ๋ฅผ ์ž…๋ ฅํ•ด๋ณด๋Š” ๊ฒƒ, ๊ทธ๋Ÿผ ๊ทธ ์ƒํƒœ์—์„œ ๋‘˜ ์ค‘ ์•„๋ฌด๋ฒ„ํŠผ์ด๋‚˜ ๋ฒ„ํŠผ์„ ๋ˆ„๋ฅด๋ฉด.. target:button ์ด ๋ณด์ธ๋‹ค. ๋ฒ„ํŠผ์„ ..
๋กœ๊ทธ์ธ์ฐฝ ๋งŒ๋“ค๊ธฐ css๊ฐ€ ์˜ˆ์ „๋ณด๋‹จ ์ข€ ๋‚˜์•„์ง„๋“ฏ....? box-shadow ๋ž‘ ๊ธ€๊ผด ๋ฐ”๊พธ๋Š”๊ฒƒ, ์ด๋ชจ์ง€ ๋„ฃ๋Š” ๊ฒƒ, ๋ฒ„ํŠผ hover ๊ธฐ๋Šฅ,์ƒ‰ ๊ณ„์—ด ๋งž์ถ”๊ธฐ ๋“ฑ์ด ๋“ค์–ด๊ฐ”๋‹ค. ์•„ ๊ทธ๋ฆฌ๊ณ , border:none; ์‹œ์ผœ๋†“๋Š” ๊ฒŒ ์ด์œ๋“ฏ..! ์˜ค๋ฅ˜ ๊ณ ์น˜๊ธฐ ํŽ˜์–ด๋ถ„์ด ์ž˜ ๋„์™€์ฃผ์…”์„œ ๋•๋ถ„์— ์˜ค๋ฅ˜๋ฅผ ํ•ด๊ฒฐํ•  ์ˆ˜ ์žˆ์—ˆ๋‹ค. 1. document ์ฒ ์ž๋ฅผ ํ‹€๋ฆฌ๊ฒŒ ์”€ 2. class ๋ผ .๋ฅผ ์จ์•ผ ํ•˜๋Š”๋ฐ, #์„ ์”€ let elPasswordErrorMessage = document.querySelector('.mismatch-message') 3. ๋จผ์ € ํ•จ์ˆ˜ isMatch ๋ฅผ ์จ์„œ ๋‘ ํŒจ์Šค์›Œ๋“œ๊ฐ€ ๊ฐ™์„๋•Œ true๋ฅผ ๋ฑ‰์–ด๋‚ด๊ณ , ๋‹ค๋ฅผ๋•Œ, false ๋ฅผ ๋ฑ‰์–ด๋‚ด๋Š” ์กฐ๊ฑด๋ฌธ์„ ๋งŒ๋“ ๋‹ค. function isMatch (password1, passwor..
์ด ๊ธ€์€ ์œ ํŠœ๋ฒ„ '๋ผ๋งค๊ฐœ๋ฐœ์ž'๋‹˜์˜ ์˜์ƒ์„ ๋ณด๊ณ  ํ•„๊ธฐํ•œ ๊ฒƒ์ž…๋‹ˆ๋‹ค. https://www.youtube.com/watch?v=YbVuqWD12Ko ์›น ํ”„๋ก ํŠธ์—”๋“œ ๊ฐœ๋ฐœ์ž ๋กœ๋“œ๋งต
DOM ์ด๋ž€? ๋ฌธ์„œ ๊ฐ์ฒด ๋ชจ๋ธ, ์ฆ‰ DOM์€ ์›น ํŽ˜์ด์ง€(HTML์ด๋‚˜ XML ๋ฌธ์„œ)์˜ ์ฝ˜ํ…์ธ  ๋ฐ ๊ตฌ์กฐ, ๊ทธ๋ฆฌ๊ณ  ์Šคํƒ€์ผ ์š”์†Œ๋ฅผ ๊ตฌ์กฐํ™” ์‹œ์ผœ ํ‘œํ˜„ํ•˜์—ฌ ํ”„๋กœ๊ทธ๋ž˜๋ฐ ์–ธ์–ด๊ฐ€ ํ•ด๋‹น ๋ฌธ์„œ์— ์ ‘๊ทผํ•˜์—ฌ ์ฝ๊ณ  ์กฐ์ž‘ํ•  ์ˆ˜ ์žˆ๋„๋ก API๋ฅผ ์ œ๊ณตํ•˜๋Š” ์ผ์ข…์˜ ์ธํ„ฐํŽ˜์ด์Šค์ž…๋‹ˆ๋‹ค.
scope ํ•จ์ˆ˜์„ ์–ธ๋ฌธ์œผ๋กœ ์ •์˜ํ•œ ํ•จ์ˆ˜๋Š” ํ•จ์ˆ˜ ํ˜ธ์ด์ŠคํŒ…์ด ์ผ์–ด๋‚œ๋‹ค.ํ•จ์ˆ˜ ํ‘œํ˜„์‹์€ ๋ถˆ๊ฐ€๋Šฅ ํ•จ์ˆ˜ ํ˜ธ์ด์ŠคํŒ…: ํ•จ์ˆ˜ ์„ ์–ธ ์ด์ „์— ํ˜ธ์ถœ์ด ๋œ๋‹ค. describe('scope ๋Œ€ํ•ด์„œ ํ•™์Šตํ•ฉ๋‹ˆ๋‹ค.', function () { // scope๋Š” ๋ณ€์ˆ˜์˜ ๊ฐ’(๋ณ€์ˆ˜์— ๋‹ด๊ธด ๊ฐ’)์„ ์ฐพ์„ ๋•Œ ํ™•์ธํ•˜๋Š” ๊ณณ์„ ๋งํ•ฉ๋‹ˆ๋‹ค. ๋ฐ˜๋“œ์‹œ ๊ธฐ์–ตํ•˜์‹œ๊ธฐ ๋ฐ”๋ž๋‹ˆ๋‹ค. it('ํ•จ์ˆ˜ ์„ ์–ธ์‹(declaration)๊ณผ ํ•จ์ˆ˜ ํ‘œํ˜„์‹(expression)์˜ ์ฐจ์ด๋ฅผ ํ™•์ธํ•ฉ๋‹ˆ๋‹ค.', function () { let funcExpressed = 'to be a function'; expect(typeof funcDeclared).to.equal("function"); expect(typeof funcExpressed).to.equal("string"); functio..
์–ด๋–ค ์ปดํ“จํ„ฐ ์–ธ์–ด๋ฅผ ๋ฐฐ์šฐ๋”๋ผ๋„ ๊ฐ€์žฅ๋จผ์ € ์ง‘์ค‘ํ•ด์•ผ ํ•  ๊ฒƒ์€ CRUD๊ฐ€ ๋˜๊ฒ ๋‹ค. ์ด๋ฒˆ์—๋Š” document ๊ฐ์ฒด๋ฅผ ํ†ตํ•ด์„œ html ์—˜๋ฆฌ๋จผํŠธ๋ฅผ create, read, update, delete ๋ฐฉ๋ฒ•์„ ํ•™์Šตํ•œ๋‹ค. ํŠนํžˆ, DOM ์—์„œ๋Š” html ์— ์ ์šฉ(append) ํ•˜๋Š” ๋ฉ”์„œ๋“œ๊ฐ€ ๋”ฐ๋กœ ์žˆ์œผ๋‹ˆ ์ฃผ์˜ํ•ด์•ผ ๊ฒ ๋‹ค. CREATE ์ƒ์„ฑ document.createElement('div')๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ div๋ฅผ ์ƒ์„ฑํ•œ๋‹ค document.createElement('div') โ€‹โ€‹ //์ž๋ฐ”์Šคํฌ๋ฆฝํŠธ์—์„œ ์–ด๋–ค ์ž‘์—…์˜ ๊ฒฐ๊ณผ๋ฅผ ๋‹ด์œผ๋ ค๋ฉด? //๋ณ€์ˆ˜๋ฅผ ์„ ์–ธํ•˜๊ณ  ์–ด๋–ค ์ž‘์—…์˜ ๊ฒฐ๊ณผ๋ฅผ ๋ณ€์ˆ˜์— ํ• ๋‹น //์—ฌ๊ธฐ์„œ๋Š” div element๋ฅผ tweetDiv์— ํ• ๋‹น const tweetDiv = document.createElement('div') ์•„์ง ..
becky(์ง€์€)
Know yourself, follow your passion