๐ ์ธ๋ฏธํด๋ก
- ์๋ฐ์คํฌ๋ฆฝํธ๋ ํ๋์ ๋ช ๋ น์ด ๋๋ ๋ ์ธ๋ฏธ์ฝ๋ก ์ ๋ถ์ฌ๋ ๋๊ณ ๋ถ์ด์ง ์์๋ ๋๋ค.
์ธ๋ฏธํด๋ก ์ ๋ถ์ด์ง ์์ผ๋ฉด ๋๋ถ๋ถ ์๋ฐ์คํฌ๋ฆฝํธ ์์ง์ด ์๋์ผ๋ก ๋ถ์ฌ์ค๋ค.
ํ์ง๋ง ๊ฐ๋ ์๋ฌ๊ฐ ๋ฐ์ํ๊ธฐ๋ ํ๊ณ ํต์ผ์ฑ์ ์ํด ๋ชจ๋ ๋ช ๋ น ๋ค์ ์ธ๋ฏธ์ฝ๋ก ์ ๋ถ์ด๊ธฐ๋ฅผ ๊ถ์ฅํ๋ค.
- ํ ์ค์ ์ฌ๋ฌ ๋ช ๋ น์ ๋ฃ์ ๋์๋ ๋ฐ๋์ ๋ช ๋ น ๋ค์ ์ธ๋ฏธ์ฝ๋ก ์ ๋ถ์ฌ ๊ทธ ๋ค์ ๋ช ๋ น๊ณผ ๊ตฌ๋ถํด์ผ ํ๋ค.
console.log('Hello, world!');
console.log('Hello, javascript!');
console.log('Hello');
๐ ์ฃผ์
- ์ฌ๋๋ง ์์๋ณผ ์ ์๋๋ก ์ค๋ช ์ ์์ฑํ ๋ถ๋ถ์ ์ฃผ์์ด๋ผ๊ณ ํ๋ค. ์ฃผ์์ ์ฝ๋์ ์ํฅ์ ๋ฏธ์น์ง ์๋๋ค.
๋ณดํต ์ฃผ์์ ์ฝ๋์ ๊ดํ ์์ธํ ์ค๋ช ์ ์์ฑํ๊ฑฐ๋ ํน์ ์ฝ๋๋ฅผ ์์๋ก ์ฌ์ฉํ์ง ์๊ฒ ํ ๋ ์ฌ์ฉํ๋ค.
- ์ฃผ์์๋ ํ ์ค ์ฃผ์ / ์ฌ๋ฌ ์ค ์ฃผ์์ด ์๋ค.
๐ค ํ ์ค ์ฃผ์
- ์ฃผ์์ด ํ ์ค์ผ ๋๋ ์ฃผ์ ์์ //๋ฅผ ๋ฃ๋๋ค.
// Hello, comment! ์ถ๋ ฅ
console.log('Hello, comment!');
- ์ฝ๋ ๋ค์ ์ฃผ์์ ์์ฑํ ์๋ ์๋ค.
console.log('Hello, comment!'); // Hello, comment! ์ถ๋ ฅ
๐ค ์ฌ๋ฌ ์ค ์ฃผ์
- ํ ์ค๋ก ์์ฑํ๊ธฐ์๋ ์ฃผ์์ด ๋๋ฌด ๊ธธ ๋ ์ฌ๋ฌ ์ค ์ฃผ์์ ์ฌ์ฉํ๋ค.
- ์ฃผ์ ์ฒ๋ฆฌํ๊ณ ์ถ์ ๋ถ๋ถ์ /* ์ */ ๋ก ๊ฐ์ธ๋ฉด ๋๋ค.
/* console.log('Hello, world!');
console.log('Hello, comment!'); */
- ์ฝ๋ ์ค๊ฐ์ ์ฌ๋ฌ ์ค ์ฃผ์์ ๋ฃ์ ์๋ ์๋ค.
console.log('Hello, world!'); /* ์ฌ๋ฌ ์ค
์ฃผ์
์
๋๋ค */ console.log('Hello, comment');
๐ ๋ค์ฌ์ฐ๊ธฐ
- ๋ค์ฌ์ฐ๊ธฐ๋ฅผ ํ๋ ๊ฒ๋ง์ผ๋ก๋ ๊ทธ ๋ถ๋ถ์ด ๋ค๋ฅธ ์๋ฏธ๊ฐ ์๋ ๋ถ๋ถ์ด๋ผ๋ ๊ฒ์ ๋ค๋ฅธ ์ฌ๋์๊ฒ ์๋ ค์ค ์ ์์ด์ ์ฝ๋์ ๊ฐ๋ ์ฑ์ด ํฅ์๋๋ค.
- (๋์) Let's Get IT ์๋ฐ์คํฌ๋ฆฝํธ ํ๋ก๊ทธ๋๋ฐ
๋๋ถ(TheBook): Let's Get IT ์๋ฐ์คํฌ๋ฆฝํธ ํ๋ก๊ทธ๋๋ฐ
thebook.io
- (๊ฐ์ข) ๋ ์ธ ๊ธฐ๋ฆฟ ์๋ฐ์คํฌ๋ฆฝํธ
[๋ฌด๋ฃ] [๋ฆฌ๋ด์ผ] ๋ ์ธ ๊ธฐ๋ฆฟ ์๋ฐ์คํฌ๋ฆฝํธ - ์ธํ๋ฐ | ๊ฐ์
๋ณธ ๊ฐ์์์๋ ์๋ฐ์คํฌ๋ฆฝํธ๋ฅผ ํ์ฉํด ํ๋ก๊ทธ๋๋ฐ ์ฌ๊ณ ๋ ฅ์ ๊ธฐ๋ฅด๋ ์ฐ์ต์ ํฉ๋๋ค. ์น ๊ฒ์์ธ ๊ตฌ๊ตฌ๋จ์ ์์์ผ๋ก ๋๋ง์๊ธฐ, ์ซ์ ์ผ๊ตฌ, ๋ฐ์ ์๋ ํ ์คํธ, ํฑํํ , ๋ก๋ ์ถ์ฒจ๊ธฐ, ๊ฐ์๋ฐ์๋ณด, ์นด
www.inflearn.com