Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Animal categories
//JavaScript-C24.2.0 (SpiderMonkey) var eatPlants=true ; // Could be true or false for a species of animals. var eatMeat=true ; // Could be true or false in a species of animals. var category = eatPlants===true && eatMeat === true ? ("Omnivores") : eatMeat===false && eatPlants === true ? ("Herbivores") : eatMeat==true && eatPlants==false ? ("Carnivores"):("Undefined"); print ( category )
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
Reverse strings
Copy of "Javascript is Weird"
ECMAScript5 - js
Functions
Nombre en MAYÚSCULAS
ComposeWordsGrid
Try
JS Testing
color
AVL-GO-FLAT
Please log in to post a comment.