Run Code
|
Code Wall
|
Users
|
Misc
|
Feedback
|
About
|
Login
|
Theme
|
Privacy
Animal category
//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.
Just stop thinking about it and go eat
2-D Kinematics with accurate air drag
Wall
Copy of "Javascript is Weird"
10 bottles of juice
Prime Factors
Константа круга
1
Returns an approximation of Pi.
JS exam part 2 - Missing Number
Please log in to post a comment.