Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- console.log('How old are you?')
- process.stdin.on('data', (age) => {
- if ((age<100) && (age>0)){
- let year = (2019-age)
- console.log('Your year of the birth is ' + year + ' !')
- }else{
- console.log ('Are you sure?')
- }
- process.exit()
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement