Methods
-
ask(question, callback)
-
ask is helper function to get input from user using stdin
Parameters:
Name Type Description questionstring To display what input needs from user callbackfunction After user enter input it will be catched -
askForDetails()
-
Our app will start from this function `askForDetails`
-
printDetails(name, age)
-
To print person details
Parameters:
Name Type Description namestring user entered name ageint user entered age