Japan was ill prepared to launch the pivotal battle of Midway. They even had to cheat in a simulation which showed a near 50-50 of loss against two large carriers (not knowing we would repair the Yorktown in record time from the Battle of the Coral Sea and have it available at Midway), but understood there was no better opportunity for a decisive battle, so went for it anyway.
Even after Midway, they invaded Guadalcanal and attempted to keep offensive operations moving forward on another front. We all know how that campaign turned out.
Sorry for the typo.