Question:What will be output for the following JavaScript:
<script>
var a=5
var b=4
var c=(a>b)
var d="Your stock is worth "+(c*20)+" thousand dollars.";
alert(d);
</script>
 

A Your stock is worth 20 thousand dollars. 

B Your stock is worth 0 thousand dollars. 

C No output 

D Syntax error 

+ Answer
+ Report
Total Preview: 770

Copyright © 2024. Powered by Intellect Software Ltd