comment cast un string en int js code example
Example: intval js
parseInt(value);
let string = "321"
console.log(string); // "321" <= string
let number = parseInt(string);
console.log(number) // 321 <=int
parseInt(value);
let string = "321"
console.log(string); // "321" <= string
let number = parseInt(string);
console.log(number) // 321 <=int