I have been battling with this code since couple of days and its giving me issue. the other functions are working perfectly except this EQUAL function.
Below is the code
equal.addEventListener("click", function(e){
if (screen.value = "") {
screen.value = "";
} else{
console.log(screen.value);
let answer = eval(screen.value);
screen.value = answer;
}
});