TypeScript String toString()
Syntax & Examples
Syntax of toString()
The syntax of String.toString() method is:
toString(): string
This toString() method of String returns a string representation of a string.
The syntax of String.toString() method is:
toString(): string
This toString() method of String returns a string representation of a string.