Node.js · Junior · Question 48 of 75

How can Node.js load variables from a .env file without extra packages?

Explanation

Built-in .env support removed the need for dotenv in many projects. Real secrets in production still come from the environment or a secret manager, not a committed file.

Further reading

Problem with a question

Node.js · Junior · question 48

Test yourself

Take the Node.js · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz