From 65d4afc9e0eb88a56341d8e21c3f1007a41c418c Mon Sep 17 00:00:00 2001 From: Adrian Chira Date: Thu, 16 May 2019 20:57:16 +0300 Subject: [PATCH] Changed var to const (#22475) The English version was changed so I changed var to const as in the English version --- .../javascript/falsy-values/index.md | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/guide/portuguese/javascript/falsy-values/index.md b/guide/portuguese/javascript/falsy-values/index.md index fd2d85155d..84081fb6ad 100644 --- a/guide/portuguese/javascript/falsy-values/index.md +++ b/guide/portuguese/javascript/falsy-values/index.md @@ -19,17 +19,17 @@ if (!variable) { ## Exemplos gerais ```javascript -var string = ""; // <-- falsy - - var filledString = "some string in here"; // <-- truthy - - var zero = 0; // <-- falsy - - var numberGreaterThanZero // <-- truthy - - var emptyArray = []; // <-- truthy, we'll explore more about this next - - var emptyObject = {}; // <-- truthy +const string = ""; // <-- falsy + +const filledString = "some string in here"; // <-- truthy + +const zero = 0; // <-- falsy + +const numberGreaterThanZero; // <-- falsy + +const emptyArray = []; // <-- truthy, we'll explore more about this next + +const emptyObject = {}; // <-- truthy ``` ## Diversão com Arrays @@ -71,4 +71,4 @@ const match = { teamA: 0, teamB: 1 } * [Falsy | Glossário | MDN](https://developer.mozilla.org/en-US/docs/Glossary/Falsy) -* [Truthy and Falsy: Quando tudo não é igual em JavaScript](https://www.sitepoint.com/javascript-truthy-falsy/) \ No newline at end of file +* [Truthy and Falsy: Quando tudo não é igual em JavaScript](https://www.sitepoint.com/javascript-truthy-falsy/)