What is the meaning of On_a_whim?

Without thinking seriously about the consequences.

Source: wiktionary.org