take interger in js code example
Example 1: javascript type casting int
Number("3.14") // returns 3.14
false.toString() // returns "false"
String(false) // returns "false"
Example 2: js int
var myInt = 69420
1+1//int
1+"1"//string
Number("3.14") // returns 3.14
false.toString() // returns "false"
String(false) // returns "false"
var myInt = 69420
1+1//int
1+"1"//string