brain_games_ivan_bermanov
Version:
console games
19 lines (15 loc) • 1.42 kB
JavaScript
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
const readline = require('readline-sync');
const hello = () => {
console.log('Welcome to the Brain Games!');
console.log('');
const userName = readline.question('May I have your name? ');
return console.log(`Hello, ${userName}!`);
};
var _default = hello;
exports.default = _default;
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy90ZXN0LmpzIl0sIm5hbWVzIjpbInJlYWRsaW5lIiwicmVxdWlyZSIsImhlbGxvIiwiY29uc29sZSIsImxvZyIsInVzZXJOYW1lIiwicXVlc3Rpb24iXSwibWFwcGluZ3MiOiI7Ozs7Ozs7QUFBQSxNQUFNQSxRQUFRLEdBQUdDLE9BQU8sQ0FBQyxlQUFELENBQXhCOztBQUVBLE1BQU1DLEtBQUssR0FBRyxNQUFNO0FBQ2xCQyxFQUFBQSxPQUFPLENBQUNDLEdBQVIsQ0FBWSw2QkFBWjtBQUNBRCxFQUFBQSxPQUFPLENBQUNDLEdBQVIsQ0FBWSxFQUFaO0FBQ0EsUUFBTUMsUUFBUSxHQUFHTCxRQUFRLENBQUNNLFFBQVQsQ0FBa0Isd0JBQWxCLENBQWpCO0FBQ0EsU0FBT0gsT0FBTyxDQUFDQyxHQUFSLENBQWEsVUFBU0MsUUFBUyxHQUEvQixDQUFQO0FBQ0QsQ0FMRDs7ZUFPZUgsSyIsInNvdXJjZXNDb250ZW50IjpbImNvbnN0IHJlYWRsaW5lID0gcmVxdWlyZSgncmVhZGxpbmUtc3luYycpO1xuXG5jb25zdCBoZWxsbyA9ICgpID0+IHtcbiAgY29uc29sZS5sb2coJ1dlbGNvbWUgdG8gdGhlIEJyYWluIEdhbWVzIScpO1xuICBjb25zb2xlLmxvZygnJyk7XG4gIGNvbnN0IHVzZXJOYW1lID0gcmVhZGxpbmUucXVlc3Rpb24oJ01heSBJIGhhdmUgeW91ciBuYW1lPyAnKTtcbiAgcmV0dXJuIGNvbnNvbGUubG9nKGBIZWxsbywgJHt1c2VyTmFtZX0hYCk7XG59O1xuXG5leHBvcnQgZGVmYXVsdCBoZWxsbztcbiJdfQ==
;