4.2. Type Conversion¶
/*The type conversion function String turns its argument into a string.
Remember that when we print a string, the quotes may be removed.
However, if we print the type, we can see that it is definitely
'string'.*/
console.log(String(17));
console.log(String(123.45));
console.log(typeof String(123.45));
//17
//123.45
//string