1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
export const ADJECTIVES = [
{ emoji: "๐Ÿ˜‚", name: "funny" },
{ emoji: "๐Ÿคฉ", name: "exciting" },
{ emoji: "๐Ÿคช", name: "silly" },
{ emoji: "๐Ÿ‘ป", name: "spooky" },
{ emoji: "โœจ", name: "wondrous" },
{ emoji: "ๅ†’", name: "adventurous" },
{ emoji: "๐Ÿ”ฎ", name: "magical" },
{ emoji: "๐Ÿ•ต๏ธ", name: "mysterious" },
{ emoji: "๐Ÿ˜ˆ", name: "mischievous" },
{ emoji: "๐ŸŒŸ", name: "enchanting" },
{ emoji: "๐Ÿฆ„", name: "fantastical" },
{ emoji: "๐Ÿญ", name: "sweet" },
{ emoji: "๐ŸŒบ", name: "delightful" },
{ emoji: "๐ŸŽˆ", name: "joyful" },
{ emoji: "๐ŸŒณ", name: "peaceful" },
{ emoji: "๐Ÿ„", name: "quirky" },
{ emoji: "๐ŸŒป", name: "cheerful" },
{ emoji: "๐ŸŽญ", name: "dramatic" },
{ emoji: "๐Ÿฆ‰", name: "wise" },
{ emoji: "๐ŸŽจ", name: "colorful" },
{ emoji: "๐ŸŽ€", name: "charming" },
{ emoji: "๐ŸŽก", name: "merry" },
{ emoji: "๐ŸŒน", name: "lovely" },
];
export const getRandomAdjective = () => {
return ADJECTIVES[Math.floor(Math.random() * ADJECTIVES.length)];
};
export const getSortedAdjectives = () => {
return ADJECTIVES.sort((a, b) => a.name.localeCompare(b.name));
};
Val Town is a social website to write and deploy JavaScript.
Build APIs and schedule functions from your browser.
Comments
Nobody has commented on this val yet: be the first!
August 3, 2024