Okay, the problem you have is the numbers you are entering.
var d=Math.sqrt(b-4*a*c);
Calculate the square root, but remember that if b-4*a*c
is negative , then is indeterminate.
You must validate that b > (4*a*c)
or b-4*a*c >= 0
so you can see what I say, try to connect these values.
var a= parseInt(1);
var b= parseInt(20);
var c= parseInt(2);
var total_raiz = b-4*a*c;
if(total_raiz < 0){
console.log("No es posible encontrar la raíz cuadrada de un número negativo");
}else{
var d=Math.sqrt(total_raiz);
var e=d-b;
e=e/(2*a);
document.write("<p>"+e+"</p>");
var f = d*-1;
e=f-b;
e=e/(2*a);
document.write("<p>"+e+"</p>");
}