On Macintosh keyboards it's ⌥⇧-. On the iOS soft keyboard, it's a long-press on the hyphen key. People often point out that various software will turn a double hyphen -- into one by default. We're overflowing with different ways to type an em dash, for those with any curiosity to learn.
I'd like to know how to type it with voice dictation.