Changed var to const (#22475)
The English version was changed so I changed var to const as in the English versionpull/30971/head^2
parent
39a9da5c1d
commit
65d4afc9e0
|
@ -19,17 +19,17 @@ if (!variable) {
|
|||
## Exemplos gerais
|
||||
|
||||
```javascript
|
||||
var string = ""; // <-- falsy
|
||||
const string = ""; // <-- falsy
|
||||
|
||||
var filledString = "some string in here"; // <-- truthy
|
||||
const filledString = "some string in here"; // <-- truthy
|
||||
|
||||
var zero = 0; // <-- falsy
|
||||
const zero = 0; // <-- falsy
|
||||
|
||||
var numberGreaterThanZero // <-- truthy
|
||||
const numberGreaterThanZero; // <-- falsy
|
||||
|
||||
var emptyArray = []; // <-- truthy, we'll explore more about this next
|
||||
const emptyArray = []; // <-- truthy, we'll explore more about this next
|
||||
|
||||
var emptyObject = {}; // <-- truthy
|
||||
const emptyObject = {}; // <-- truthy
|
||||
```
|
||||
|
||||
## Diversão com Arrays
|
||||
|
|
Loading…
Reference in New Issue