Parse Flashcards
1
Q
How would you convert a string to a integer? If the value in the string is a number.
A
parseInt(num);
2
Q
How would you convert a string to a decimal? If the value in the is a number.
A
parseFloat(num)
How would you convert a string to a integer? If the value in the string is a number.
parseInt(num);
How would you convert a string to a decimal? If the value in the is a number.
parseFloat(num)