출처
| 문자열 출력하기
정답
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(){
str = input[0];
console.log(str)
});
문제
'프로그래머스 > 코딩 기초 트레이닝' 카테고리의 다른 글
a와 b 출력하기 (Scala) (0) | 2023.07.10 |
---|---|
a와 b 출력하기 (Python) (0) | 2023.07.10 |
문자열 출력하기 (C) (0) | 2023.07.09 |
문자열 출력하기 (Java) (0) | 2023.07.09 |
문자열 출력하기 (Scala) (0) | 2023.07.09 |