arrow function1 자바스크립트 기초 #5 | Function / Arrow function Function / Arrow function Function - 프로그램의 기본 구성 요소, 블록 - 재사용 가능 - 작업을 수행하거나 값 계산 1. Function declaration 함수 선언 - function name (param1, param2) {body ... return;} - one function === one thing - naming: doSomething, command, verb e.g. createCardAndPoint -> createCard, createPoint - js에서 함수는 객체 function printHello(){ console.log('Hello'); } printHello(); function log(message){ console.log(message.. 2021. 3. 13. 이전 1 다음