0 votes
in JavaScript by
What if you use parseInt() to convert a string containing decimal value?

a) Throws Error

b) It returns the decimal values in string form

c) If returns only the integer portion of the number

d) None of the listed option

1 Answer

0 votes
by

Answer:-  C

reason:- JavaScript's parseInt function is all about converting a string to an integer. The function takes a string value as an argument and converts it to a numerical value with no decimal places, or alternatively the value NaN.

...