Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- process.stdin.resume()
- process.stdin.setEncoding('utf8')
- console.log('How old are you ? ')
- process.stdin.on('data', (text) => {
- if (text > 0 && text < 100) {
- let age = 2019 - text
- console.log('Hello you were born in... ' + age)
- } else {
- console.log("Don't fuck with me kidd")
- }
- process.exit()
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement