Porcupines have long sharp hairs called quills. What is the main function of the quills on the porcupine?

Answer:protection from other predators.
Explanation: the quills will stick into a predator that attack the porcupine Note: it does NOT shoot its quills