SHARE
TWEET

Untitled

a guest Mar 22nd, 2019 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. process.stdin.resume()
  2. process.stdin.setEncoding('utf8')
  3.  
  4. console.log('Wallah t\'as quel age ?')
  5. process.stdin.on('data' , (age) =>{
  6.   if(age >= 1 && age <= 99){
  7.     console.log(`T'as été pondu en ${2019-age} !`);
  8.   }else{
  9.     console.log('Osti ! Entre ton age !')
  10.   }
  11.   process.exit()
  12. })
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top