How can I store JavaScript Variables on a Cloud Host (Like Replit)

I am making a webpage where you need to input data and it gets stored in a database on the webpage host (replit). can i get help on how to store html javascript variables in some database which wont get deleted once i close my browser