Back

Version 10

9/28/2023
const get_random_compliment = (async () => {
// Function to generate a random compliment
function generateCompliment() {
const randomIndex = Math.floor(Math.random() * compliments.length);
return @vandyand.compliments[randomIndex];
}
let rand_compliment = generateCompliment();
// Generate and log a random compliment
console.log(rand_compliment);
return rand_compliment;
})();
vandyand-get_random_compliment.web.val.run
Updated: October 23, 2023