123456789101112131415161718
const readLine = require('readline');const rl = readLine.createInterface({ input: process.stdin, output: process.stdout,});const suzyImpression = () => { rl.question('Hey, Suzy, please type \'love\' for me:', (suzy) => { if (suzy == 'love') { console.log('Marry me ♡'); return rl.close(); } console.log('please, type \'love\'. :)'); suzyImpression(); });};suzyImpression();