Methods
addJoke(joke)
This function adds a joke into the inner array
Parameters:
| Name | Type | Description |
|---|---|---|
joke |
String | A funny joke |
getRandomJoke() → {String}
Return a random joke from the inner list
Returns:
A random joke
- Type
- String
sayRandomJoke()
Print on the console a random joke. I hope it is funny!