const readline = require('readline');
const rl = readline.createInterface({
input: process.stdin,
output: process.stdout
});
let input = [];
rl.on('line', function (line) {
input = line;
}).on('close',function(){
console.log(input);
});
'자바스크립트' 카테고리의 다른 글
[javascript] 정규표현식, 따옴표와 함께 - 숫자, 옹알이 (프로그래머스) (1) | 2023.10.23 |
---|---|
[javascript] toUpperCase() - 대소문자 바꿔서 출력하기(프로그래머스) (0) | 2023.07.08 |
[javascript] require('readline') - a와 b 출력하기(프로그래머스) (0) | 2023.07.07 |
[javascript] array.reverse() -배열 뒤집기(프로그래머스) (0) | 2023.07.07 |
[javascript] 아이스 아메리카노(프로그래머스) (1) | 2023.07.07 |