Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

check a divide condition and print msg javascript

 try div(3;0) catch if "NaN" then "div by 0 error detected" else . end
Source by rosettacode.org #
 
PREVIOUS NEXT
Tagged: #check #divide #condition #print #msg #javascript
ADD COMMENT
Topic
Name
8+1 =