Javascript
javascript๋ frontend๋ก ์ธ ์ ์๋ ์ ์ผํ ์ธ์ด๋ก, ๋ธ๋ผ์ฐ์ ์ ๋ด์ฅ๋์ด ์์ด ๋ค๋ฅธ ์ธ์ด์ฒ๋ผ ์ค์น ๊ณผ์ ์ด ์๋ค. ๋ํ ํ๋ ์์ํฌ๋ฅผ ์ฌ์ฉํด backend์๋ ์ฌ์ฉ๋๋ค.
Framework of Javascript
: ํ๋ก๊ทธ๋๋ฐ์์ ํน์ ์ด์์ฒด์ ๋ฅผ ์ํ ์์ฉ ํ๋ก๊ทธ๋จ ํ์ค ๊ตฌ์กฐ๋ฅผ ๊ตฌํํ๋ class์ library์ ๋ชจ์์ผ๋ก, javascript ํ๋ ์์ํฌ์๋ ๋ํ์ ์ผ๋ก react, vue, angular ๋ฑ์ด ์๋ค.
- three.js๋ javascript๋ก 3D๋ฅผ ๊ตฌํํ๊ฒ ํด์ค๋ค.
- react native๋ javascript๋ง์ผ๋ก๋ ๋ชจ๋ฐ์ผ ์ฑ์ ๋ง๋ค ์ ์๊ฒ ํด์ค๋ค.
- electron์ js, html, css๋ก desktop app์ ๋ง๋ค ์ ์๊ฒ ํด์ค๋ค.
- ml5.js๋ก ๋จธ์ ๋ฌ๋ ๋ชจ๋ธ์ ์์ฑํ๋ ์น์ฌ์ดํธ๋ฅผ ๊ตฌ์ถํด ํ๋ จ์ํฌ ์๋ ์๋ค.
#2.0 Your First JS Project
app.js
alert("hi");
style.css
body{
background-color: beige;
}
app.js์ style.css๋ฅผ ๋ธ๋ผ์ฐ์ ์์ ์ด์์ ๋, ๋ค์๊ณผ ๊ฐ์ด ๊ทธ๋ฅ ์ฝ๋๊ฐ ์ถ๋ ฅ๋๋ ๊ฒ์ ๋ณผ ์ ์๋ค. ๋ธ๋ผ์ฐ์ ๋ css์ jsํ์ผ์ ์ด๋ฐ ์์ผ๋ก ์คํํ์ง ์๊ธฐ ๋๋ฌธ์ด๋ค. ๋ธ๋ผ์ฐ์ ์ js, css๋ฅผ ์ฐ๊ฒฐํด์ฃผ๋ ๋ฌด์ธ๊ฐ๊ฐ ํ์ํ๋ค. ๊ทธ๊ฒ์ด html์ด๋ค.
๋ธ๋ผ์ฐ์ ์์๋ html ํ์ผ์ ์ด๊ณ , html์ css์ js๋ฅผ ๊ฐ์ ธ์จ๋ค.
index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Momentum</title>
<!-- link:css ์ ์๋์์ฑ -->
<link rel="stylesheet" href="style.css">
</head>
<body>
<script src="app.js"> </script>
</body>
</html>
'javascript > ๋ฐ๋๋ผ JS๋ก ํฌ๋กฌ ์ฑ ๋ง๋ค๊ธฐ' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
DAY 8 (0) | 2023.01.03 |
---|---|
DAY 5 (0) | 2022.12.30 |
DAY 4 (0) | 2022.12.30 |
DAY 3 (0) | 2022.12.28 |
DAY 2 (1) | 2022.12.28 |