Why is my car shutting off at random? Just replaced the battery and gas filter. on 1998 Nissan 200SX

When I pull up to a stop light sometimes the car wants to cut off and today when I pulled in my driveway it really did cut off. Not sure what the issue could be.

Get Your Car Fixed at a RepairPal Certified Shop.
We certify shops based on expertise, quality work, and verified customer reviews
1 answer
when is the last time it had a full tune-up?