Ga Min Cha

Upload splitreply.js

1 +let replyMsg = "손흥민, 득점 수, 세계 신기록, 등수, 팀 이름, 오차율, prediction"
2 +
3 +function splitReplyMsg(replyMsg){
4 + var result = replyMsg.replace(/(\s*)/g, '');
5 + result = result.split(',');
6 + return result;
7 +}
8 +
9 +console.log(splitReplyMsg(replyMsg));
...\ No newline at end of file ...\ No newline at end of file