이름이 없는 함수
// 람다사용 [1,2,3,4,5].forEach(function(ele) {console.log(ele)}) // 람다사용X function print(ele) {console.log(ele) } [1,2,3,4,5].forEach(print)
사용하는 이유
굳이 함수를 선언하고 싶지 않을 때 재사용하지 않는 함수를 만들고자 할때