How did world war 2 affect japan who invaded some Asian countries?

theyre a bloody island and the US started attacking so they lost A LOT of people.