What does `Number.parseInt(‘0xFF’, 16)` return?

JavaScript Developer Easy

JavaScript Developer — Easy

What does `Number.parseInt(‘0xFF’, 16)` return?

Key points

  • `Number.parseInt` with base 16 converts the string to a decimal number
  • `0xFF` in hexadecimal is equivalent to 255 in decimal
  • The function returns the parsed integer value

Ready to go further?

Related questions