From 0e6feee1381b67efc55ea3682321f077a9d781ba Mon Sep 17 00:00:00 2001 From: Sagar Jha Date: Wed, 17 Jan 2018 14:15:19 -0500 Subject: [PATCH] fix(seed): Change variable name from array to args (#16472) Changed variable name from array to args. It will validate the last validation. Particular variable name is required but it is not mentioned in description. Closes #16351 --- .../02-javascript-algorithms-and-data-structures/es6.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/seed/challenges/02-javascript-algorithms-and-data-structures/es6.json b/seed/challenges/02-javascript-algorithms-and-data-structures/es6.json index 2d24982c73..3b46ea1a16 100644 --- a/seed/challenges/02-javascript-algorithms-and-data-structures/es6.json +++ b/seed/challenges/02-javascript-algorithms-and-data-structures/es6.json @@ -367,8 +367,8 @@ "const sum = (function() {", " \"use strict\";", " return function sum(x, y, z) {", - " const array = [ x, y, z ];", - " return array.reduce((a, b) => a + b, 0);", + " const args = [ x, y, z ];", + " return args.reduce((a, b) => a + b, 0);", " };", "})();", "console.log(sum(1, 2, 3)); // 6"