Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Javascript
conditional operator
user68689
Programming language:
Javascript
2021-06-30 22:53:26
0
Q:
conditional operator
Bhagyesh Joshi.
Code:
Javascript
2021-01-27 01:56:29
var age = 26; var beverage = (age >= 21) ? "Beer" : "Juice"; console.log(beverage); // "Beer"
-1
Related
what is modulus operator
ternary operator react
ternary operator
react conditional class
examples of Conditional Operator js
New to Communities?
Join the community