With American cryptanalysts breaking the Japanese code, the Japanese Imperial Fleet losing the strategic element of surprise at Midway, which allowed the American Fleet to ambush the Japanese and win a decisive victory.