Question: how do you know if it's the battery or the alternator?
Answer: Some of the things to look for are no-starting and trouble starting, dimming lights and problems with stereo system output. If your car starts but stalls when you're underway, your battery is probably not being recharged due to a faulty alternator.