var quadraticFormula = function(a, b, c) {
console.log((-b + sqrt( (b*b) - 4 * a * c)) / 2a) };
quadraticFormula(2,2,2)
I am a beginner trying to make a simple quadratic equation calculator on javascript. I keep on getting a syntax error message saying "missing ) after argument list". What is wrong with my code?
console.log(...)2aisn't a valid token. (I assume you have asqrtfunction somewhere.)