Do you see the magic inside?
// Once upon a time...
let magicJar = {
secrets: ["Twinkle", "Bubbles", "Giggle"],
wishes: function() {
return this.secrets[Math.floor(Math.random() * this.secrets.length)];
}
};
// Can you guess the wish?