Question:What will be output of the following JavaScript code:
<script>
var apples=2.0;
var oranges=2.34;
var pears=3.3;
var tax=.04;
var shipping=3.43;
var subtotal=apples+oranges+pears;
var total=subtotal+(subtotal*tax)+shipping;
var message="Your total is $";
var deliver=message+total+".";
document.write(deliver);
</script>
 

A Your total is $11.37 

B No output 

C Your total is $11.3 

D deliver 

+ Answer
+ Report
Total Preview: 836

Copyright © 2024. Powered by Intellect Software Ltd