Cómo convertir la cadena a int js
let string = "1";
let num = parseInt(string);
//num will equal 1 as a int
Unusual Unicorn
let string = "1";
let num = parseInt(string);
//num will equal 1 as a int
let string = "0";
let num = parseInt(String);
if (string == 0){return1 ;}