String()
Converts the value to text.
Syntax
String(value)
Description
Converts values like numbers and arrays to text (or use template literals).
Returns
Text (string).
Example
Loading editor…
Expected output
36 age 36
When to use?
Concatenating numbers with text, formatting.