// Fun images
let pics = [
"https://i.imgur.com/3ZQ3Z6O.png",
"https://i.imgur.com/9xkq0JW.png",
"https://i.imgur.com/b4DrLwB.png",
"https://i.imgur.com/uiySTVx.png"
];
function showRandomPicture() {
let img = document.getElementById("funnyPic");
let output = document.getElementById("output");
output.innerText = "";
img.src = pics[Math.floor(Math.random() * pics.length)];
img.style.display = "block";
}
// Jokes
let jokes = [
"Why did the teddy bear say no to dessert? Because she was stuffed! ๐",
"Whatโs a catโs favorite color? PURR-ple! ๐น",
"Why donโt eggs tell jokes? They'd crack each other up! ๐ฅ๐คฃ",
"Why was the math book sad? Because it had too many problems ๐ญ๐"
];
function tellJoke() {
let img = document.getElementById("funnyPic");
img.style.display = "none";
document.getElementById("output").innerText =
jokes[Math.floor(Math.random() * jokes.length)];
}