Type Conversion
Type Conversion
Overview
JavaScript is a loosely typed language, and most of the time, operators automatically
convert a value to the right type. Still, there are also cases when we need to do type
conversions explicitly.
1
Converting Numbers to Strings
The String ( ) and toString( ) method can convert numbers to strings.