I try to do this coding when i key in the planet name, it will alert its diameter and it distance from the sun. But i can't do it. ( Keeps giving me the "incorrect star input" alert. So i put a for loop but it still not doing right. Care to help?
with what argument are you calling your presult() function? your argument is case-sensitively checked, too.. so the capitals have to be in the correct place..