This question already has an answer here:
marked as duplicate by SAJ14SAJ, sarge_smith, BaffledCook, Jefromi♦ Mar 11 at 6:24
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
Great question. the salt is not there for the taste of salt. A pinch of salt helps with the ionization process so your taste buds can pick up the tsate of the chocolate, ice cream, etc, better.
I think this was discussed in an episode of Alton Brown's Good Eats as well.
It enhances the flavour of the chocolate, vinegar is used in a similar way when added to cream sauces and mousses. We use vinegar to bring out the flavour of aubergine in our mushroom and aubergine sauce. Worth a try! :)