You could run Windows 10 (and Edge) on a Mac if you install Bootcamp or Parallels.
Register Hereor login if you are already a member
You have seen that your friend uses MS Edge. But on which system, is it Mac OS or Windows? Probably this is Mac OS. If yes, have you asked how did he install MS Edge on Mac OS? Have you ever tried to understand what mechanism is there that the browser runs on the same OS? What you asked, this is possible. To use MS Edge on an Mac OS, you can download/ install Virtual Box and a free virtual machine available from Microsoft.
Though, it is recommended to use Safari (default browser of Mac OS). Other than Safari. System may use high CPU resource and that leads to slow down.