JavaScript Developer — Easy
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
JavaScript Developer — Easy
Key points
Ready to go further?
Related questions