jokes-gco

Random jokes for you

Usage no npm install needed!

<script type="module">
  import jokesGco from 'https://cdn.skypack.dev/jokes-gco';
</script>

README

jokes - gco

MORE JOKES TO BE ADDED

npm install jokes-gco

Here's the source code

var jokes = require('jokes-gco');
console.log(joke.alljoke()); 

will Output All The Jokes

[{
    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

console.log(joke.randomjoke);

output

{
  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

console.log(joke.num(2))

output

{ id: 2, q: 'What does the zero say to the eight?', a: 'Nice belt!' }