Skip to content

Conversation

pabloabadsanz
Copy link

It can be the case that when trying to generate a random number, the min specified value is higher than the max specified one.
Maybe the jokes text file is empty...
In that case, I'd like to return false as the getRandomNumber result, printing then that there're no jokes in the file

@pabloabadsanz
Copy link
Author

This is the code contribution for my final exam assignment in the Pirple's 'the-nodejs-master-class'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant