From 7705e1a805fc77491d375f8ce93dcb25e1b6280b Mon Sep 17 00:00:00 2001 From: v01d3tr Date: Wed, 13 Feb 2019 10:31:16 +0100 Subject: [PATCH] fix: syntax update (#26895) --- guide/english/javascript/code-blocks/index.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/guide/english/javascript/code-blocks/index.md b/guide/english/javascript/code-blocks/index.md index f64414e0fc..b932749a9a 100644 --- a/guide/english/javascript/code-blocks/index.md +++ b/guide/english/javascript/code-blocks/index.md @@ -24,8 +24,8 @@ The **block** statement is commonly used with control flow statements (e.g. `if. x++; } - function addnums(num1, num2) { - var sum = 0; + function addNums(num1, num2) { + let sum = 0; sum = num1 + num2; return sum; }