How does credit card interest work?

How does credit card interest work?