Bear test

Run Settings
LanguageJavaScript
Language Version
Run Command
function getRandomElement(arr) { return arr[Math.floor(Math.random() * arr.length)]; } const bears = ['sloth bear', 'american black bear', 'asian black bear', 'polar bear', 'sun bear', 'spectacled bear', 'panda bear', 'brown bear']; const seasons = ['winter', 'summer', 'spring', 'fall']; const manStates = ['normal', 'aggressive', 'passive', 'members of discord']; const randomBear = getRandomElement(bears); const randomSeason = getRandomElement(seasons); const randomManState = getRandomElement(manStates); console.log('Bear:', randomBear); console.log('Season:', randomSeason); console.log('Man State:', randomManState);
Editor Settings
Theme
Key bindings
Full width
Lines