Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js a || b

"foo" || "bar"; // returns "foo"
false || "bar"; // returns "bar"
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #js
ADD COMMENT
Topic
Name
9+3 =