implicit type conversion in javascript code example
Example 1: implicit type conversion js
Input:
var v = 1555;
var s = v.toString();
Output:
now s contains "1555".
Example 2: type explicit conversion js
Number("3.14") // returns 3.14
false.toString() // returns "false"
String(false) // returns "false"