From 6b8c2bb2201e7842ae8a61f95e4ed260dc1f107c Mon Sep 17 00:00:00 2001 From: Mrugesh Mohapatra Date: Tue, 2 Feb 2016 02:17:56 +0530 Subject: [PATCH] Add Instructions Clarification to Using Objects for Lookups This commit adds clarification to the Instructions. Tested locally. --- .../basic-javascript.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/seed/challenges/01-front-end-development-certification/basic-javascript.json b/seed/challenges/01-front-end-development-certification/basic-javascript.json index 04a214d0467..2a032832b4e 100644 --- a/seed/challenges/01-front-end-development-certification/basic-javascript.json +++ b/seed/challenges/01-front-end-development-certification/basic-javascript.json @@ -3424,7 +3424,7 @@ "Here is an example of a simple reverse alphabet lookup:", "
var alpha = {
1:\"Z\",
2:\"Y\",
3:\"X\",
4:\"W\",
...
24:\"C\",
25:\"B\",
26:\"A\"
};
alpha[2]; // \"Y\"
alpha[24]; // \"C\"

var value = 2;
alpha[value]; // \"Y\"
", "

Instructions

", - "Convert the switch statement into a lookup table called lookup. Use it to lookup val and return the associated string." + "Convert the switch statement into a lookup table called lookup. Use it to lookup val and assign the associated string to the result variable." ], "releasedOn": "January 1, 2016", "challengeSeed": [