()
| 11 | } |
| 12 | |
| 13 | function showMeme() { |
| 14 | // Value should be a string representing image URL |
| 15 | const randomMemeUrl = getRandomData("memes"); |
| 16 | |
| 17 | const memeContainer = document.querySelector(".meme-content"); |
| 18 | const newMeme = document.createElement("img"); |
| 19 | newMeme.setAttribute("src", randomMemeUrl); |
| 20 | |
| 21 | clearAll(); |
| 22 | |
| 23 | // Add the new img to the document |
| 24 | memeContainer.appendChild(newMeme); |
| 25 | } |
| 26 | |
| 27 | function showJoke() { |
| 28 | // Value should be a string representing the joke |
nothing calls this directly
no test coverage detected