Files
2018-10-26 13:34:23 +04:00

24 lines
1.0 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: Use the .env File
localeTitle: Используйте файл .env
---
## Используйте файл .env
Мы можем использовать метод .toUpperCase (), чтобы сделать строку все шапки, такие как:
```javascript
var response = "Hello World".toUpperCase(); // now becomes "HELLO WORLD"
```
Все, что нам нужно сделать, это проверить, что такое значение переменной среды, которое вы можете сделать следующим образом:
```javascript
if (process.env.VAR_NAME === "allCaps") {
resonse = "Hello World".toUpperCase();
} else {
response = "Hello World";
}
});
```
[Помогите нашему сообществу расширить эти подсказки и руководства](https://github.com/freecodecamp/guides/tree/master/src/pages/certifications/apis-and-microservices/basic-node-and-express/use-the-.env-file/index.md) .