John Doe
Lead Developer, Chief Coffee Drinker
function generateRandomJokes() {
var jokes = [
"I'm not a programmer, I'm the opposite.",
"I'm not lazy, I'm just on energy-saving mode.",
"Why do programmers prefer dark mode? Because light bulbs cost money."
];
return jokes[Math.floor(Math.random() * jokes.length)];
}
function generateCatPictures() {
var images = [
"https://example.com/cat1.jpg",
"https://example.com/cat2.jpg",
"https://example.com/cat3.jpg"
];
var randomCat = images[Math.floor(Math.random() * images.length)];
return <img src="randomCat" alt="A random cat">
Want to see more code snippets? Check out: