Question:What will be the output of the following code snippet?
var elStringo="15.95";
var laStringa="32 on sale"
var newval=parseFloat(elStringo);
var hotval=parseInt(laStringa);
document.write("Your total is:$"+( newval+ hotval));
 

A Your total is : $47.95 

B Your total is : $32.95 

C $46.95 

D $32.95 

+ Answer
+ Report
Total Preview: 882

Copyright © 2024. Powered by Intellect Software Ltd