From 4dc1535d862d08ae19b4082a02efc204f86972dc Mon Sep 17 00:00:00 2001 From: kViking Date: Wed, 21 Nov 2018 23:32:35 -0800 Subject: [PATCH] Whitespace formatting (#23083) Added/fixed whitespace. I'm just trying to get a t-shirt, man --- guide/english/javascript/output/index.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/guide/english/javascript/output/index.md b/guide/english/javascript/output/index.md index 0bd816854d..6665c9d3ca 100644 --- a/guide/english/javascript/output/index.md +++ b/guide/english/javascript/output/index.md @@ -10,7 +10,7 @@ It is the most commonly used way to output the data. It's a common practice to i ```javascript var numbers = [ 1, 2, 3, 4, 5, 6, 7]; -numbers.forEach(function(number){ +numbers.forEach(function(number) { console.log(number + ' is divisible by 2', number%2 == 0); }); ``` @@ -21,12 +21,12 @@ As you guessed by the name this is used for showing warnings, and its typical ye ```javascript -function isAdult(age){ - if(Number(age) < 18){ +function isAdult(age) { + if(Number(age) < 18) { console.warn('You are not an adult'); return false; - } - return true; + } + return true; } ```