Read ENV Variable
NodeJS
Easy
3 views
Problem Description
Read MEETCODE_NAME from process.env and print it (use fallback if missing).
Output Format
Print one line.
Constraints
If env not set, print 'meetcode'.
Official Solution
const name = (process.env.MEETCODE_NAME || 'meetcode').trim() || 'meetcode';
console.log(name);
Solutions (0)
No solutions submitted yet. Be the first!
No comments yet. Start the discussion!