Search
 
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
Name
9+9 =