Nonsensical Horoscope Generator

This is a nonsensical Horoscope Generator that I made with JavaScript.

The most difficult part was figuring out how to make sure that the planet chosen and the other planet’s moons never were the same, but I kept getting an undefined message.

I solved this by using array.pop() and array[i-1].

The horoscope section itself was broken into two parts just for kicks.

Please leave feedback as to how I could write the program cleaner! Thank you!