From 0e71e4264af70c56cca524b6404f2ff86e745b95 Mon Sep 17 00:00:00 2001 From: Alex Busch Date: Fri, 19 Oct 2018 01:59:40 -0400 Subject: [PATCH] Change var to const (#20331) --- guide/english/javascript/falsy-values/index.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/guide/english/javascript/falsy-values/index.md b/guide/english/javascript/falsy-values/index.md index 2523a49d4d..697abd434f 100644 --- a/guide/english/javascript/falsy-values/index.md +++ b/guide/english/javascript/falsy-values/index.md @@ -19,17 +19,17 @@ if (!variable) { ## General Examples ```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; // <-- falsy +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 ``` ## Fun With Arrays