By the time of this battle, the US had broken Japan’s naval code, so the attack was known ahead of time.