toString()
A method that returns a readable text representation of an object.
What does toString() do in JavaScript?
toString() — A method that returns a readable text representation of an object.
const orderNumber = 2048;
const text = orderNumber.toString();
Level: Apprentice · More JavaScript terms at this level
Updated