Edit in JSFiddle

var a = 0/0;
alert(a);
alert(typeof a);
 
var b=  Infinity,
    c= b/b; 
alert(c);
alert(typeof c);