truck will start sometimes,next time it won't on 2004 Chevrolet S10

my truck will start 2-4 times then it will not start, will start every time when jumped

Asked by for the 2004 Chevrolet S10
Check your battery cables and make sure they are clean and tight as a loose or corroded cable will act like this