Question:What output will produce for the following JavaScript code snippet?
<script type="text/javascript">    
var str=((45%2)==0)?"hello":"bye";  
 document.write(str); 
</script>
 

A bye 

B hello 

C error 

D 0 

+ Answer
+ Explanation
+ Report
Total Preview: 1107

Copyright © 2024. Powered by Intellect Software Ltd