스터디/goormLevel_문제풀기1 [난이도 1] 정수의 길이 // Run by Node.jsconst readline = require('readline');(async () => { let rl = readline.createInterface({ input: process.stdin }); for await (const line of rl) { console.log('Hello Goorm! Your input is', line); rl.close(); } process.exit();})(); 처음 초기 모습이다. 정수의 길이를 찾는 문제이므로 정답console.log(line.length); // String.length 문자열의 길이를 구할 수 있다. 2024. 7. 2. 이전 1 다음