Returning output


#1

When would one return, or not return, an output statement

return this.ask("what is your name?"); 

and

this.ask("what is your name?");

#2

There is no need to use a return as the Jovo handling uses promises (a bit more on that here), however, there is no harm in using return.

return could be especially helpful when you really want it to be the last thing that happens inside a handler (e.g. in an if-statement):

if (gameAlreadyPlayed) {
   return this.tell('You already had the chance to win today. See you tomorrow!');
}

this.ask('True or false: ...');