I need to connect inputs with the three numbers When i write a=1 b=-3 and c=-4 and when i press the button --> to have a solution
function solve(a, b, c) {
let x1 = (-1 * b + Math.sqrt(Math.pow(b, 2) - (4 * a * c))) / (2 * a);
let x2 = (-1 * b - Math.sqrt(Math.pow(b, 2) - (4 * a * c))) / (2 * a);
return "X1= " + x1 + ", X2= " + x2;
}
console.log(solve(1, -3, -4));