DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
javascript change nan to 0
a = a || 0 //if "a" is false (NaN included), will return 0
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#javascript
#change
#nan
ADD COMMENT
Topic
COMMENT
Name
9+9 =
Submit