function sayHello(name){ console.log(`Hello,${name}`); } function : 함수 sayHello: 함수명(임의) name : 매개변수(인수) 매개변수가 없는 함수 function showError(){ alert('에러가 발생했습니다. 다시 시도해주세요.'); } showError(); 매개변수가 있는 함수 function sayHello(name){ const msg = `Hello, ${name}`; console.log(msg); } sayHello('Mike'); function sayHello(name){ let msg = `Hello`; if(name){ msg = `Hello, ${name}`; } console.log(msg); } sayHel..