const ratingValue = userInput.value; if(+ratingValue > 1) {} // + works exactly like a parseInt() if(parseInt(ratingValue > 1)) {}