What is the function of the porcupine's quills?

Kids, do you know what the spines on a hedgehog are for? Come discover the answer in the story!

Joy Scientific Enlightenment Joy 7 6 5 4 8 Unauthorized Unauthorized Why? Ten Thousand Questions