What is a DEX? Decentralised Exchanges Explained

If you’ve been doing your research on cryptocurrencies, then chances are you’ve come across the term ‘DEX’ a few times already! But what is a decentralised exchange and how does it compare to a centralised exchange?