It's important not to leave suddenly in a fit of anger - that can have very huge ramifications on the child. Instead, come to the decision together with your child and ensure that both you and your spouse explain to him why you have decided to divorce. It has to be stressed that the reason is between you and your spouse and that you both love the child still. It would be ideal if the separated parent can regularly visit the child so as prevent him from feeling like he is abandoned.
Kids are very sensitive and a matter like divorce can affect kids of any age. So, you should be mindful of such things as to how you can help kids in coping with your divorce. Don't ever tell your kids about your conflicts with your partner and never speak ill about your spouse in front of kids. Most importantly, indulge in conversation with your kid and make them understand about the situation with ease. Remember it is your divorce, not your kid's. It is you who has to deal the situation.
Children can have a lot of difficulty dealing with divorce. For very young children who are still quite close to their parents, it can feel as if their whole world is falling apart. They need a lot of reassurance and the opportunity to ask questions until they feel certain they know what to expect. Sometimes they will need to be drawn into a conversation, as they’re too young to understand their feelings and frequently internalize the stress. Many kids will require reassurances that the divorce is not their fault and that their parents still love them. Most children of divorce can benefit from counseling to help them process their feelings.