What does parseFloat string And NaN mean-00126
This subjective question is related to the book/course vu bnk603 Consumer Banking. It can also be found in vu bnk603 Mid Term Solved Past Paper No. 1.
Question 1: What does 'parseFloat(string)' And NaN mean?
Answer:
The parseFloat() function parses a string and returns a floating point number. This function determines if the firstcharacter in the specified string is a number. If it is, it parses the string until it reaches the end of the number, andreturns the number as a number, not as a string. The NaN property represents "Not-a-Number" value. Thisproperty indicates that a value is not a legal number.