📅  最后修改于: 2022-03-11 15:03:19.693000             🧑  作者: Mango
function convertToInterger(myString) {
return parseInt(myString, 2); // We convert this to base 2.
}
console.log(convertToInterger("10011")); // This is a binary number.