diff --git a/JavaScript_Advance/get_environment_variable.js b/JavaScript_Advance/get_environment_variable.js new file mode 100644 index 0000000..59e5783 --- /dev/null +++ b/JavaScript_Advance/get_environment_variable.js @@ -0,0 +1,7 @@ +// Getting values of environment variables +// For example, getting username of machine +const ENV_VARIABLE_KEY = "USER"; + +const ENV_VARIABLE_VALUE = process.env[ENV_VARIABLE_KEY]; + +console.log(ENV_VARIABLE_VALUE); \ No newline at end of file