I am new to programming in general and finally started to work on a small project -- that is to build a Quadratic Function Calculator and I've come across the problem of the language not supporting imaginary numbers and more specifically, negative square roots.
How do I use imaginary numbers in Javascript without using math.js?
function quadraticCalc () {
var a = prompt ("What is the a variable?") ;
var b = prompt ("What is the b variable?") ;
var c = prompt ("What is the c variable?") ;
var aC = 4 * a * c ;
var bExp = Math.pow(b, 2);
var multA = 2 * a
var insideRoot = bExp - aC
var root = Math.sqrt(insideRoot);}