76.5k views
3 votes
Can someone help me with this coding project


And sorry for the bad quality

Can someone help me with this coding project And sorry for the bad quality-example-1

1 Answer

6 votes

Answer:

PART 1

if (isNan(num1) || isNan(num2)){

throw 'Error';

}

PART 2

catch(e){

document.getElementById("answer").innerHTML = "Error!";

}

User Edimshuffling
by
6.4k points