They work in much the same way apart from online sites are powered by an RNG whereas a land-based casino is powered by mechanics. Also, online slots tend to offer more paylines and have more features.