Question:What is the output of the following in JavaScript?
var input="12.51km";
length=parseFloat(input);
document.write(length);
 

A 12.51km 

B 12km 

C 12.51 

D 12 

+ Answer
+ Report
Total Preview: 807

Copyright © 2025. Powered by Intellect Software Ltd