99 Bottles Challenge

I am doing the 99 bottles challenge which I have completed, but I want to change the grammar if the number of bottles is equal to 0, the output should say “No more bottles of beer on the wall”, instead of 0 bottles of beer on the wall.

How do I also change when the number of bottles equal to 1, after “Take one down, pass it around” it should then say 1 bottle of beer, rather than 1 bottles…

Here is my code:

Sounds like the perfect use case for an ‘if’ statement.

if (numBottles <= 0) {
   // do stuff
} 
if (numBottles === 1) {
    // do some different stuff
} else {
   // do the default stuff
}

for example.