switch (bird.type) { case 'EuropeanSwallow': return âaverageâ; case 'AfricanSwallow': return (bird.numberOfCoconuts > 2) ? âtiredâ : âaverageâ; case 'NorwegianBlueParrot': return (bird.voltage > 100) ? âscorchedâ : âbeautifulâ; default: return âunknownâ;
image/svg+xml
class EuropeanSwallow { get plumage() { return âaverageâ; } class AfricanSwallow { get plumage() { return (this.numberOfCoconuts > 2) ? âtiredâ : âaverageâ; } class NorwegianBlueParrot { get plumage() { return (this.voltage > 100) ? âscorchedâ : âbeautifulâ; }
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.3