UNPKG

by-mput2

Version:

Learning Hexlet.io node.js project implementation.

8 lines (6 loc) 221 B
import readlineSync from 'readline-sync'; export default () => { console.log('Welcome to the Brain Games!'); const userName = readlineSync.question('May I have your name? '); console.log(`Hello, ${userName}!`); };