const answerArray = this.inputValue.split('').map(number => parseInt(number));
this.inputValue.split('')
- split('') 메서드는 해당 문자열을 각 문자 단위로 분할하여 배열로 만든다
사용자가 입력한 문자열 inputValue = '1234'; 일 경우 배열로 분할하여 반환
inputValue = '1234';
this.inputValue.split('') = ['1', '2', '3', '4']
inputValue = '1234';
this.inputValue.split('') = ['1', '2', '3', '4']
.map(number => parseInt(number)) = [1, 2, 3, 4]