DeepFrontend
Learning Paths
Practice
System Design & DS
Design Studio
Data Structures Curriculum
Real-World Case Studies
Careers
Job Board
Resume Builder
Blog
Sign in
Search
⌘K
Go Pro
Loading compiler resources...
Node.js Quiz Practice
Active Recall Drill Session
← Exit Session
Question 1 of 1
easy
Node.js
What's the modern, native way to load variables from a .env file, without installing a package?
A
require('dotenv').config()
B
node --env-file=.env server.js
C
import 'env' from 'node'
D
There is no native way
Check Answer