반응형 ArrowFunction #ES6 #애로우함수 #Arrow함수 #JavaScript1 ES6 Arrow functions Arrow function은 JavaScript에서 traditional functions을 대체할 수 있는 함수 생성방법 중 하나입니다. traditional function 생성 방법 function hello(name) { console.log('hello ' + name); } Arrow function 생성 방법 const hello = function(name) { console.log('hello ' + name); } or const hello = (name) => { console.log('hello ' + name); } arguments가 없는 경우, 함수 선언시 빈 괄호를 반드시 사용해야 합니다. const hello = () => { console.log('hello'); } ar.. 2022. 8. 25. 이전 1 다음 반응형