jokes-gco
Version:
Random jokes for you
72 lines (58 loc) • 1.31 kB
Markdown
# jokes - gco
### MORE JOKES TO BE ADDED
`npm install jokes-gco`
Here's the source code
```javascript
var jokes = require('jokes-gco');
console.log(joke.alljoke());
```
will Output All The Jokes
```javascript
[{
id: 1,
q: "What do you call a number that can't keep still?",
a: 'a roamin numeral'
},
{ id: 2, q: 'What does the zero say to the eight?', a: 'Nice belt!' },
{
id: 3,
q: 'Why are you doing your multiplication on the floor?',
a: 'You told me not to use tables.'
},
{
id: 4,
q: 'Where did the vampire college student go clothes shopping?',
a: 'Forever 21'
},
{
id: 5,
q: 'What do snowmen order at fast-food restaurants?',
a: 'An iceberg-er and fries!'
},
{
id: 6,
q: " What do snowmen do when they're not feeling well?",
a: 'They take a chill pill!'
}
]....
```
# how to get a Random Joke
```javascript
console.log(joke.randomjoke);
```
output
```javascript
{
id: 25,
q: 'What did the left eye say to the right eye?',
a: 'Between us, something smells!'
}
```
# How To Get A joke Using A Num
```javascript
console.log(joke.num(2))
```
output
```javascript
{ id: 2, q: 'What does the zero say to the eight?', a: 'Nice belt!' }
```