Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js inline if

var a = 2;
var b = 3;    
var c = ((a < b) ? 'minor' : 'major');
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #js #inline
ADD COMMENT
Topic
Name
1+2 =