Untitled

mail@pastecode.io avatar
unknown
javascript
2 years ago
409 B
1
Indexable
Never
process.stdout.write("This programm is a game.\nPlease, type in a nymber : ");
process.stdin.on("data", function(inputFromUser) {
    let givenInput = parseInt(inputFromUser);
    process.stdout.write('\nYou typed in ' + givenInput + '.');
    process.stdout.write('\nMy number is ' + (givenInput + 1) + '.');
    process.stdout.write('\nSorry, you lost. I won. Thanx for the game.');
    process.exit();
});