Iran and the US have continued to exchange strikes in recent days, but all-out war has so far been avoided.