What exactly constitutes terrorism?

What constitutes terrorism and what doesn’t varies from nation to nation