An example of how to generate a random joke!
Last updated 4 years ago
// This snippet uses some-random-cat version 2.0 const somethingRandom = require('some-random-cat').Random somethingRandom.getJoke() .then(res => { console.log(res) return }) // Get the result .catch(e => { console.error(e) return }) // Catch the error