Having trouble making a noun plural based on a count and need some help understanding the issue.
// PLEASE DO NOT MODIFY THE FOLLOWING INPUTS.
const noun = prompt("Enter a noun");
const count = prompt("Enter a number");
console.log(noun);
console.log(count);
// This function returns the pluralized form of a noun based on the count provided, such as "5 cats" or "1 dog", assuming no irregular plural nouns.
if ((count > 1 ) || (count = 0)) {
result = count + " " + noun + "s";
}else{
result = count + " " + noun;
}
// PLEASE DO NOT ALTER THIS PART.
console.log(result);