diff --git a/src/getRandomMeme.js b/src/getRandomMeme.js new file mode 100644 index 0000000..ec3d276 --- /dev/null +++ b/src/getRandomMeme.js @@ -0,0 +1,11 @@ +var getRandomMeme = function(memes) { + if (memes === undefined) { + var memes = [ + "Place", + "Your memes", + "Here" + ]; + } + + return memes[Math.floor(Math.random() * memes.length)]; +}