javascript math to int code example
Example 1: parseint function javascript
function convertToInterger(mystring) {
return parseInt(mystring);
}
console.log(convertToInterger("42"));
Example 2: js int
var myInt = 69420
1+1//int
1+"1"//string