Periksa kondisi divide dan cetak msg javascript

 try div(3;0) catch if "NaN" then "div by 0 error detected" else . end
Curious Capuchin