We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8ab8da3 + fba8524 commit 9c48544Copy full SHA for 9c48544
JavaScript_Advance/get_environment_variable.js
@@ -0,0 +1,7 @@
1
+// Getting values of environment variables
2
+// For example, getting username of machine
3
+const ENV_VARIABLE_KEY = "USER";
4
+
5
+const ENV_VARIABLE_VALUE = process.env[ENV_VARIABLE_KEY];
6
7
+console.log(ENV_VARIABLE_VALUE);
0 commit comments