So I have this code:
function step3() {
    //finds both answers
    answer1 = top1 / (2*a);
    answer2 = top2 / (2*a);
    console.log(answer1 + " " + answer2);
    solutions = isNaN(answer1)
    console.log(solutions)
    if (solutions = true) {
        console.log("no real sol")}
    step4()
}
and when I run that if answer1 is NaN it does print true, but every time it prints no real sol. Why does it do this? I thought it would only if solutions is true.
 
     
     
    