함수 선언

function helloFunc() {
	console.log(1234);
}

함수 호출

helloFunc(); // 1234

함수 반환

function returnFunc() {
	return 123;
}

let a = returnFunc();

console.log(a);  // 123

매개변수

function sum(a, b) {
	return a + b;
}

let a = sum(1, 2);  // 1과 2는 인수

console.log(a, b, c); // 3