๋ฐ์ํ
[์ถ์ฒ-์ ํ๋ธ ๋ ธ๋ง๋ ์ฝ๋ Nomad Coders]
-๋ด์ฅ ํจ์
-ํจ์(function)๋ ์ด๋ค ๊ฒ์ ๊ธฐ๋ฅ์ด๋ค
const nicoInfo = {
name:"Nico",
age:33,
gender:"Male",
isHandsome:true
}
console.log(nicoInfo, console)

*ํจ์ ๋ง๋ค๊ธฐ
function sayHello(){
console.log('Hello!');
}
sayHello();

function sayHello(potato){
console.log('Hello!', potato);
}
sayHello("Nicolas");
console.log("Hi!");

function sayHello(potato, age){
console.log('Hello!', potato,
"you have", age, "years of age.");
}
sayHello("Nicolas", 15);

๋ฐ์ํ
'JavaScript > Vanilla JS' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
| [๋ฐ๋๋ผJS๋ก ํฌ๋กฌ ์ฑ ๋ง๋ค๊ธฐ] Modifying the DOM with JS (0) | 2021.02.26 |
|---|---|
| [๋ฐ๋๋ผJS๋ก ํฌ๋กฌ ์ฑ ๋ง๋ค๊ธฐ] JS DOM Functions (0) | 2021.02.26 |
| [๋ฐ๋๋ผJS๋ก ํฌ๋กฌ ์ฑ ๋ง๋ค๊ธฐ] Organizing Data with Objects (0) | 2021.02.26 |
| [๋ฐ๋๋ผJS๋ก ํฌ๋กฌ ์ฑ ๋ง๋ค๊ธฐ] Organizing Data with Arrays (0) | 2021.02.26 |
| [๋ฐ๋๋ผJS๋ก ํฌ๋กฌ ์ฑ ๋ง๋ค๊ธฐ] Data Types on JS (0) | 2021.02.25 |
๋๊ธ