There are a number of online hosting solutions that can be used with your Battlesnake. Many of these services provide a free tier for new accounts. Some popular ones in the Battlesnake community include:
Everything is in your web browser - no need to install software or run anything locally.
Free tier is good for getting started.
Might not have the most up-to-date version of your preferred programming language.
For speed and by default, your Replit instance will be run close to where you are, geographically. This is an advantage when using your IDE (quick when you are writing code) but may result in high-latency, and in the worst case, timeouts, for your Battlesnake if you and your server are located in a country far-away from where the Battlesnake servers are.
You should probably use Replit if...
You are just getting started and want to test out Battlesnake without too much commitment or setup.
You don't want to have to manage your own hosting yet.