📅  最后修改于: 2022-03-11 15:03:16.193000             🧑  作者: Mango
const ratingValue = userInput.value;
if(+ratingValue > 1) {} // + works exactly like a parseInt()
if(parseInt(ratingValue > 1)) {}