
charAt() charAt ๋ฉ์๋๋ ๋ฌธ์์ด์์ ํน์ ์ธ๋ฑ์ค์ ์์นํ๋ ์ ๋์ฝ๋ ๋จ์ผ๋ฌธ์๋ฅผ ๋ฐํํฉ๋๋ค. charAt() //"๋ฌธ์์ด".charAt(์ซ์); const str1 = "javascript reference"; const currentStr1 = str1.charAt() //j const currentStr2 = str1.charAt("0") //j const currentStr3 = str1.charAt("1") //a const currentStr4 = str1.charAt("2") //v

match() match() ๋ฉ์๋๋ ๋ฌธ์์ด์ด ์ ๊ท์๊ณผ ๋งค์น๋๋ ๋ถ๋ถ์ ๊ฒ์ํฉ๋๋ค. match() //"๋ฌธ์์ด".match(๊ฒ์๊ฐ) const str1 = "javascript reference"; const currentStr1 = str1.match("javascript") //[javascript] const currentStr2 = str1.match("reference") //[reference] const currentStr3 = str1.match("r") //[r] const currentStr4 = str1.match(/reference/) //[reference] const currentStr5 = str1.match(/Reference/) //null const currentStr6 ..

search() search() search ๋ฉ์๋๋ ๋ฌธ์์ด(์ ๊ท์)์ ๊ฒ์ํ๊ณ ์์น๊ฐ(์ซ์)๋ฅผ ๋ฐํํฉ๋๋ค. //"๋ฌธ์์ด".search(๊ฒ์๊ฐ) //"๋ฌธ์์ด".search(์ ๊ท์ ํํ) const str1 = "javascript reference"; const currentStr1 = str1.search("javascript"); //0 const currentStr2 = str1.search("reference"); //11 const currentStr3 = str1.search("j"); //0 const currentStr4 = str1.search("a"); //1 const currentStr5 = str1.search("v"); //2 const currentStr6 = str1.sear..

search() search() search ๋ฉ์๋๋ ๋ฌธ์์ด(์ ๊ท์)์ ๊ฒ์ํ๊ณ ์์น๊ฐ(์ซ์)๋ฅผ ๋ฐํํฉ๋๋ค. //"๋ฌธ์์ด".search(๊ฒ์๊ฐ) //"๋ฌธ์์ด".search(์ ๊ท์ ํํ) const str1 = "javascript reference"; const currentStr1 = str1.search("javascript"); //0 const currentStr2 = str1.search("reference"); //11 const currentStr3 = str1.search("j"); //0 const currentStr4 = str1.search("a"); //1 const currentStr5 = str1.search("v"); //2 const currentStr6 = str1.sear..

ํจ์ ์ ํ (Function Type) ํจ์๋ ํ๋ก๊ทธ๋จ์์ ๋ฐ๋ณต์ ์ผ๋ก ์ฌ์ฉ๋๋ ๊ธฐ๋ฅ์ ๋ง๋ค์ด ๋ด๊ธฐ ์ํ ์ฝ๋๋ค์ ์งํฉ 1. ํจ์ ์ ํ : ํจ์์ ๋งค๊ฐ๋ณ์๋ฅผ ์ด์ฉํ ํํ ์ฝ๋๋ฅผ ์ฌํ์ฉํ๊ธฐ ์ํด ํจ์๋ฅผ ์ฌ์ฉํ๋ค. function func(num, str1, str2){ document.write(num+ ". " + str1 + "๊ฐ" + str2 + "๋์์ต๋๋ค. " + " ") } func("1","ํจ์", "์คํ") //1. ํจ์๊ฐ ์คํ๋์์ต๋๋ค. func("2","์๋ฐ์คํฌ๋ฆฝํธ", "์คํ") //2. ์๋ฐ์คํฌ๋ฆฝํธ๊ฐ ์คํ๋์์ต๋๋ค. func("3","์ ์ด์ฟผ๋ฆฌ", "์คํ") //3. ์ ์ด์ฟผ๋ฆฌ๊ฐ ์คํ๋์์ต๋๋ค. 2. ํจ์ ์ ํ : ํจ์์ ๋ณ์๋ฅผ ์ด์ฉํ ํํ function func(num, str1, str..

pug & Scss๋ก ๊ณ ์์ด animation ๋ง๋ค๊ธฐ pug & Scss ํ์ฉํด๋ณด๊ธฐ ๊ฒฐ๊ณผ See the Pen cat animation by kimm99604 (@kimm99604) on CodePen. ์ฝ๋ํ ํ์ด์ง pug pug๋ html์ ์กฐ๊ธ ๋ ์ธ๋ จ๋๊ฒ ์ธ ์ ์๋ ํ ํ๋ฆฟ ์ธ์ด, express ๋ทฐ ์์ง์ด๋ค. npm์ผ๋ก ์ค์นํ ์ ์๋ค. ๋ผ๋ฉด์ ๋ฐฅ ๋ง์์ ๋จน๊ณ ์ถ๋ค ์ด๋ ๊ฒ ์ฐ๋ ๊ฒ์ p ๋ผ๋ฉด์ ๋ฐฅ ๋ง์์ ๋จน๊ณ ์ถ๋ค ์ฒ๋ผ ์ธ ์ ์๋ค. .cat .ear.ear--left .ear.ear--right .face .eye.eye--left .eye-pupil .eye.eye--right .eye-pupil .muzzle Scss css๋ณด๋ค ๊ฐ๋จํ scss๋ก ์คํ์ผ์ ์ฃผ์๋ค. $color-black: #..

์ด๋ฏธ์ง ์คํ๋ผ์ดํธ(Image Sprite) | ir ํจ๊ณผ | ๋ฐฑ๊ทธ๋ผ์ด๋ ํํ ์ด๋ฏธ์ง ์คํ๋ผ์ดํธ(Image Sprite), ir ํจ๊ณผ, ๋ฐฑ๊ทธ๋ผ์ด๋ ํํ์ ๋ํด ์์๋ด ์๋ค. CSS ์ด๋ฏธ์ง ์คํ๋ผ์ดํธ(Image Sprite) ์ด๋ฏธ์ง ์คํ๋ผ์ดํธ(image sprite)๋ ์ฌ๋ฌ ๊ฐ์ ์ด๋ฏธ์ง๋ฅผ ํ๋์ ์ด๋ฏธ์ง๋ก ํฉ์ณ์ ๊ด๋ฆฌํ๋ ์ด๋ฏธ์ง๋ฅผ ์๋ฏธํฉ๋๋ค. ์ด๋ฏธ์ง ์คํ๋ผ์ดํธ๋ฅผ ์ฌ์ฉํ๋ฉด ์ด๋ฏธ์ง๋ฅผ ๋ค์ด๋ฐ๊ธฐ ์ํ ์๋ฒ ์์ฒญ์ ๋จ ๋ช ๋ฒ์ผ๋ก ์ค์ผ ์ ์์ต๋๋ค. ๋ํ, ๋ง์ ์ด๋ฏธ์ง ํ์ผ์ ๊ด๋ฆฌํ๋ ๋์ ๋ช ๊ฐ์ ์คํ๋ผ์ดํธ ์ด๋ฏธ์ง(sprite image) ํ์ผ๋ง์ ๊ด๋ฆฌํ๋ฉด ๋๋ฏ๋ก ๋งค์ฐ ๊ฐํธํฉ๋๋ค. ์์ figma ๋ค์ ์์ ๋ ํ๋์ ์ด๋ฏธ์ง๋ฅผ ๊ฐ์ง๊ณ 6๊ฐ์ ์์ด์ฝ์ ๋ง๋๋ ์์ ์ ๋๋ค. 6๊ฐ์ ์์ด์ฝ์ ๋ง๋ค๊ธฐ ์ํด 6๊ฐ์ ์ด๋ฏธ์ง๋ฅผ ์ฌ์ฉํ๋..

block | inline ๋ธ๋ก๋ ๋ฒจ ์์์ ์ธ๋ผ์ธ ์์์ ๋ํด ์์๋ด ์๋ค. block ๋ธ๋ก ๋ ๋ฒจ ์์๋ ์ธ์ ๋ ์๋ก์ด ์ค์์ ์์ํ๊ณ , ์ข์ฐ ์์ชฝ์ผ๋ก ์ต๋ํ ๋์ด๋ ๊ฐ๋ฅํ ๋ชจ๋ ๋๋น๋ฅผ ์ฐจ์งํฉ๋๋ค. ์์ See the Pen block by kimm99604 (@kimm99604) on CodePen. ์์๋ ํ ์คํธ์ ๋ ์ด์์์ ์์ ํ ๋ฐ๊ฟ, ์ด์ ๊ณผ ์๊ธฐ ์์ ์ ํ ์คํธ, ๊ทธ๋ฆฌ๊ณ ์ดํ์ ์ธ ๋ถ๋ถ์ผ๋ก ๋๋ ๋ฒ๋ ธ์ต๋๋ค. block ์์ , , , , , inline ์ธ๋ผ์ธ ์์๋ ์ฝํ ์ธ ์ ํ๋ฆ์ ๋์ง ์๊ณ , ์์๋ฅผ ๊ตฌ์ฑํ๋ ํ๊ทธ์ ํ ๋น๋ ๊ณต๊ฐ๋ง ์ฐจ์งํฉ๋๋ค. ๋ณดํต ์ธ๋ผ์ธ ์์๋ ๋ฐ์ดํฐ์ ๋ค๋ฅธ ์ธ๋ผ์ธ ์์๋ง ํฌํจํ ์ ์์ผ๋ฉฐ, ๋ธ๋ก ์์๋ ํฌํจํ ์ ์์ต๋๋ค. ์์ See the Pen inline by kimm99..

SASS | SCSS ์คํ์ผ ์ํธ ์ธ์ด (Style Sheets) CSS | SCSS | SASS ์ ์ CSS : Cascading Style Sheets - ์ข ์ํ ์ํธ SASS : Syntactically Awesome Style Sheets - ๋ฌธ๋ฒ์ ์ผ๋ก ์ด์ธํ ์คํ์ผ์ํธ SCSS : Sassy CSS - SASS์ 3๋ฒ์ ์์ ์๋กญ๊ฒ ๋ฑ์ฅํ ์คํ์ผ ์ํธ SASS(SCSS)์ฌ์ฉ ์ด์ (์ฅ์ ) ์น์์๋ ๋ถ๋ช CSS๋ง ๋์ํ์ง๋ง ํ๋ก์ ํธ์ ํฌ๊ธฐ๊ฐ ์ปค์ง๊ณ ๊ณ ๋ํ๋ ์๋ก ์ ์ง๋ณด์์ ํฐ ์ด๋ ค์์ด ์๊ธฐ๊ฒ ๋ฉ๋๋ค. SASS(SCSS)๋ ์ด๋ฌํ ์ด์๋ฅผ ํด์์์ผ ์ค ์ ์์ต๋๋ค. ex) ๋ถํ์ํ ์ ํ์(Selector)์ ๊ณผ์ฉ๊ณผ ์ฐ์ฐ ๊ธฐ๋ฅ์ ํ๊ณ, ๊ตฌ๋ฌธ(Statement)์ ๋ถ์ฌ ๋ฑ SCSS | SASS ์ฐจ์ด์ SAS..