fix(guide): restructure curriculum guide articles (#36501)
* fix: restructure certifications guide articles * fix: added 3 dashes line before prob expl * fix: added 3 dashes line before hints * fix: added 3 dashes line before solutions
This commit is contained in:
@@ -1,24 +1,22 @@
|
||||
---
|
||||
title: Use the .env File
|
||||
---
|
||||
## Use the .env File
|
||||
|
||||
|
||||
<!-- The article goes here, in GitHub-flavored Markdown. Feel free to add YouTube videos, images, and CodePen/JSBin embeds -->
|
||||
# Use the .env File
|
||||
|
||||
---
|
||||
## Problem Explanation
|
||||
We can use the .toUpperCase() method to make a string all caps, such as:
|
||||
|
||||
```javascript
|
||||
var response = "Hello World".toUpperCase(); // now becomes "HELLO WORLD"
|
||||
var response = "Hello World".toUpperCase(); // now becomes "HELLO WORLD"
|
||||
```
|
||||
|
||||
All we need to do now is check what the value of the environment variable is, which you can do like:
|
||||
|
||||
```javascript
|
||||
if (process.env.VAR_NAME === "allCaps") {
|
||||
response = "Hello World".toUpperCase();
|
||||
} else {
|
||||
response = "Hello World";
|
||||
}
|
||||
});
|
||||
if (process.env.VAR_NAME === "allCaps") {
|
||||
response = "Hello World".toUpperCase();
|
||||
} else {
|
||||
response = "Hello World";
|
||||
}
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user