java script double to int code example
Example 1: js convert double to int
var num = 2.9
console.log(parseInt(num, 10)); // 2
Example 2: js int
var myInt = 69420
1+1//int
1+"1"//string
var num = 2.9
console.log(parseInt(num, 10)); // 2
var myInt = 69420
1+1//int
1+"1"//string