From 54c87af5494b6b5f19e5824394a4cde911b322a1 Mon Sep 17 00:00:00 2001 From: Berkeley Martinez Date: Tue, 14 Jun 2016 18:47:43 -0700 Subject: [PATCH] Feature(challenges): Add hint system to challenges --- .../intermediate-bonfires.json | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/challenges/01-front-end-development-certification/intermediate-bonfires.json b/challenges/01-front-end-development-certification/intermediate-bonfires.json index a9f583f6f8..6e89f82e5c 100644 --- a/challenges/01-front-end-development-certification/intermediate-bonfires.json +++ b/challenges/01-front-end-development-certification/intermediate-bonfires.json @@ -19,6 +19,11 @@ "", "sumAll([1, 4]);" ], + "hints": [ + "Use Math.max() to find the maximum value of two numbers.", + "Use Math.min() to find the minimum value of two numbers.", + "Remember to that you must add all the numbers in between so this would require a way to get those numbers." + ], "solutions": [ "function sumAll(arr) {\n var sum = 0;\n arr.sort(function(a,b) {return a-b;});\n for (var i = arr[0]; i <= arr[1]; i++) {\n sum += i; \n }\n return sum;\n}" ],