처음으로 일치하는 index,찾고자하는 문자열이 없으면 -1을 반환
'Computer Game'.indexof('Computer'); // 0
'Computer Game'.indexof('computer'); // -1
'Computer Game'.indexof('Game'); // 10
'Computer Game Game'.indexof('Computer'); // 10
var str = 'Hello from the other side';
console.log(str.split(''));
['Hello','from','the','other','side']
줄바꿈을 기준으로 분리하고싶을땐 => str.split('\n')