0

Iam building a movie app using pure Javascript and I used an api. I was wondering is the a way use environment variables with js

I had a problem if I use dotenv and require it in my script where there's js code there's errors. It's saying require is not defined is the another way of hiding my api key.

29th May 2021, 11:27 AM
Liberty Daniel
Liberty Daniel - avatar
1 Resposta