xxphantom/backend-project-lvl1

View on GitHub
src/games/welcome.js

Summary

Maintainability
A
0 mins
Test Coverage
import readlineSync from 'readline-sync';

const startGreeting = () => {
  console.log('Welcome to the Brain Games');
  const userName = readlineSync.question('May I have your name? ');
  console.log(`Hello, ${userName}!`);
};

export default startGreeting;