Hyphen (-) - Even though it looks very similar to a dash, a hyphen has very different uses. It’s most commonly used to create compound words.
For example:
He is a very self-confident person.
Due to various factors, Susan decided to work part-time this summer.
Dash (– or —) - There are two different dashes, the en dash and the em dash, the first being slightly shorter than the second one. The en dash is usually used to show a connection between two things, as well as a range of numbers, years, pages, etc.
For example:
London–Paris flight takes about 1 hour and 15 minutes.
For tomorrow’s lesson, I need to read pages 45–78 of the textbook.
The em dash can replace a comma, a colon, or parenthesis. You can also use it to put emphasis on the ending of your sentence.
For example:
This year, Mark has traveled to quite a few countries—Poland, Germany, Lithuania, Georgia, and Greece.
Her answer was loud and clear—No!