Why was the Greek army able to defeat the Persians at the Battle of Salamis?

They were better equipped to fight on land.
They had more archers to use in the invasion.
They trapped the Persian ships in a narrow area of water.
They were able to surround the Persian army in the mountains.