From 9375fb59b3fe958d11a446e3ef2673c6771930eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robin=20Pokorn=C3=BD?= Date: Thu, 2 Feb 2017 13:31:10 +0100 Subject: [PATCH] [guide] Use const when not reassigning reference --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 92a1e7ce..9906ed7f 100644 --- a/README.md +++ b/README.md @@ -1588,7 +1588,7 @@ Other Style Guides ```javascript // bad - let array = [1, 2, 3]; + const array = [1, 2, 3]; let num = 1; num++; --num; @@ -1605,7 +1605,7 @@ Other Style Guides // good - let array = [1, 2, 3]; + const array = [1, 2, 3]; let num = 1; num += 1; num -= 1;