DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
javascript one line if else
var res = 1 == 1 ? 'true' : 'false' // res = true var res = 1 == 2 ? 'true' : 'false' // res = false
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#javascript
#line
ADD COMMENT
Topic
COMMENT
Name
1+3 =
Submit