Why YSK:

If you’re planning to get an extinguisher for your home you need to know that not all extinguishers can put out all types of fire. There are many intricate details if you’re interested but for the most part, a dry powder extinguisher can put out many types of fires at the cost of being incredibly messy. On the other hand, a carbon dioxide extinguisher is perfect for electronic fires and doesn’t require much clean up. Make sure to get an extinguisher for your needs. Maybe consider getting multiple extinguishers.

As an addendum: If you use a fire extinguisher even just a little you need to either discard it or refill it depending on type. Never put the extinguisher back as is.