Question:What will produce output for the following JavaScript code fragment:
<script>
var leftOperand=77;
var rightOperand=30;
var divEm=leftOperand/rightOperand;
var nada=0/0;

if(!isFinite(divEm)){
 document.write("Whoa Dude that's a big number!");
}

if(isNaN(nada)){
 document.write("You are dividing nothing by nothing");
}
</script>
 

A You are dividing nothing by nothing 

B Whoa Dude that's a big number! 

C No output 

D syntax error 

+ Answer
+ Report
Total Preview: 802

Copyright © 2024. Powered by Intellect Software Ltd