๋ฐ์ํ
[์ถ์ฒ-Youtube ์ํ์ฝ๋ฉ]
https://www.youtube.com/watch?v=OXGGA-rh__0&list=PLuHgQVnccGMA9QQX5wqj6ThK7t2tsGxjm&index=33
syntax/function2.js
console.log(Math.round(1.6)); // 2
console.log(Math.round(1.4)); // 1
function sum(first, second){
return first+second;
}
console.log(sum(2,4));
return์ ๋ง๋๋ฉด ์ถ๋ ฅ ํ ํจ์๋ ์ฆ์ ์ข ๋ฃ๋๋ค.
๋ฐ์ํ
'JavaScript > Node.js' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[Node.js-์ํ์ฝ๋ฉ] ๋๊ธฐ์ ๋น๋๊ธฐ (0) | 2021.01.29 |
---|---|
[Node.js-์ํ์ฝ๋ฉ] App ์ ์ - ํจ์๋ฅผ ์ด์ฉํด์ ์ ๋ฆฌ ์ ๋ํ๊ธฐ (0) | 2021.01.28 |
[Node.js-์ํ์ฝ๋ฉ] JavaScript - ํจ์์ ์ ๋ ฅ (0) | 2021.01.28 |
[Node.js-์ํ์ฝ๋ฉ] JavaScript - ํจ์์ ๊ธฐ๋ณธ ๋ฌธ๋ฒ (0) | 2021.01.28 |
[Node.js-์ํ์ฝ๋ฉ] App ์ ์ - ๊ธ๋ชฉ๋ก ์ถ๋ ฅํ๊ธฐ (0) | 2021.01.27 |
๋๊ธ