Replit database to be use in JS

I currently have a python replit and its related data stored in the replit database.

I will like to ask whether it is possible to write a Javascript file within this python replit and get the data from the replit database to be use in this JS file?

I think this is possible but why don’t you just use python to get the values from the db

1 Like

it is because i want to use those values in a JS file instead of in a python file

Are you using flask? If so, you can use jinja

1 Like

I mean if you don’t care about best practices you could use the python file to get the data from the database then write it inside the js file, then use os.system() to run the js via node or something.

Why not just use NodeJS then?