Which built-in method converts an integer to a string in a specified base (radix)?

JavaScript Associate Easy

JavaScript Associate — Easy

Which built-in method converts an integer to a string in a specified base (radix)?

Key points

  • toString(radix) converts an integer to a string in a specified base.
  • parseInt(radix) is used to parse a string and convert it to an integer.
  • toBase(radix) and Number.toRadix() are not valid methods in JavaScript.

Ready to go further?

Related questions