// 일반 함수 선언 방식
function add(a, b) {
return a + b;
}
// 에로우 함수 선언 방식
const add = (a, b) => a + b;
// 에로우 함수 적용 전 코드
const convertToInteger = function(number) {
return parseInt(number);
};
const answerArray = this.inputValue.split('').map(convertToInteger);
// 에로우 함수 적용
const answerArray = this.inputValue.split('').map(number => parseInt(number));