Can someone help me understand what GitHub actually does for programmers?

I’m still pretty new to programming and keep hearing about GitHub everywhere. I know it has something to do with coding but I’m not really sure what it’s for. Is it like a text editor where you write your programs, or does it do something different? I’ve tried looking at the website but it’s kind of confusing for a beginner. I see lots of repositories and code but I don’t get how it all works together. Would really appreciate if someone could break it down in simple terms for someone just starting out.

GitHub serves as a cloud-based platform specifically designed for managing code projects and facilitating collaboration among developers. Rather than being just a coding interface, it offers extensive version control capabilities through Git, which allows users to track and manage changes to their code over time, making it easy to review alterations and revert to earlier versions if necessary. Each project is contained in a repository, which acts as a dedicated folder not only for your code but also for the associated version history. This platform enhances teamwork, enabling multiple contributors to work concurrently on a project without the risk of overwriting each other’s contributions. Even when working alone, GitHub provides invaluable backup options and encourages creative experimentation without the fear of losing previous work.