What does `parseInt(‘10.9’)` return?

JavaScript Associate Easy

JavaScript Associate — Easy

What does `parseInt(‘10.9’)` return?

Key points

  • `parseInt` converts a string to an integer.
  • Decimal values are truncated, not rounded.
  • Non-numeric characters halt the parsing process.

Ready to go further?

Related questions