If you're writing in MS Word, LibreOffice, or most word processors, typing a word and then two dashes and then a word, without any spaces, like--this will generate an em dash automatically. I learned how to do it in Freshman English in high school. Though I was also taught to double space after a period.
To revise GP's comment: it’s just less computer literate people feeling the need to out themselves.