diff --git a/challenges/01-front-end-development-certification/basic-bonfires.json b/challenges/01-front-end-development-certification/basic-bonfires.json
index 62f4e71028..630dcbe61e 100644
--- a/challenges/01-front-end-development-certification/basic-bonfires.json
+++ b/challenges/01-front-end-development-certification/basic-bonfires.json
@@ -644,31 +644,31 @@
"title": "Where do I belong",
"description": [
"Return the lowest index at which a value (second argument) should be inserted into an array (first argument) once it has been sorted.",
- "For example, where([1,2,3,4], 1.5)
should return 1
because it is greater than 1
(index 0), but less than 2
(index 1).",
- "Likewise, where([20,3,5], 19)
should return 2
because once the array has been sorted it will look like [3,5,20]
and 19
is less than 20
(index 2) and greater than 5
(index 1).",
+ "For example, getIndexToIns([1,2,3,4], 1.5)
should return 1
because it is greater than 1
(index 0), but less than 2
(index 1).",
+ "Likewise, getIndexToIns([20,3,5], 19)
should return 2
because once the array has been sorted it will look like [3,5,20]
and 19
is less than 20
(index 2) and greater than 5
(index 1).",
"Remember to use Read-Search-Ask if you get stuck. Write your own code."
],
"challengeSeed": [
- "function where(arr, num) {",
+ "function getIndexToIns(arr, num) {",
" // Find my place in this sorted array.",
" return num;",
"}",
"",
- "where([40, 60], 50);"
+ "getIndexToIns([40, 60], 50);"
],
"tests": [
- "assert(where([10, 20, 30, 40, 50], 35) === 3, 'message: where([10, 20, 30, 40, 50], 35)
should return 3
.');",
- "assert(where([10, 20, 30, 40, 50], 30) === 2, 'message: where([10, 20, 30, 40, 50], 30)
should return 2
.');",
- "assert(where([40, 60], 50) === 1, 'message: where([40, 60], 50)
should return 1
.');",
- "assert(where([3, 10, 5], 3) === 0, 'message: where([3, 10, 5], 3)
should return 0
.');",
- "assert(where([5, 3, 20, 3], 5) === 2, 'message: where([5, 3, 20, 3], 5)
should return 2
.');",
- "assert(where([2, 20, 10], 19) === 2, 'message: where([2, 20, 10], 19)
should return 2
.');",
- "assert(where([2, 5, 10], 15) === 3, 'message: where([2, 5, 10], 15)
should return 3
.');"
+ "assert(getIndexToIns([10, 20, 30, 40, 50], 35) === 3, 'message: getIndexToIns([10, 20, 30, 40, 50], 35)
should return 3
.');",
+ "assert(getIndexToIns([10, 20, 30, 40, 50], 30) === 2, 'message: getIndexToIns([10, 20, 30, 40, 50], 30)
should return 2
.');",
+ "assert(getIndexToIns([40, 60], 50) === 1, 'message: getIndexToIns([40, 60], 50)
should return 1
.');",
+ "assert(getIndexToIns([3, 10, 5], 3) === 0, 'message: getIndexToIns([3, 10, 5], 3)
should return 0
.');",
+ "assert(getIndexToIns([5, 3, 20, 3], 5) === 2, 'message: getIndexToIns([5, 3, 20, 3], 5)
should return 2
.');",
+ "assert(getIndexToIns([2, 20, 10], 19) === 2, 'message: getIndexToIns([2, 20, 10], 19)
should return 2
.');",
+ "assert(getIndexToIns([2, 5, 10], 15) === 3, 'message: getIndexToIns([2, 5, 10], 15)
should return 3
.');"
],
"type": "bonfire",
"isRequired": true,
"solutions": [
- "function where(arr, num) {\n arr = arr.sort(function(a, b){return a-b;});\n for (var i = 0; i < arr.length; i++) {\n if (arr[i] >= num)\n {\n return i;\n }\n }\n return arr.length;\n}"
+ "function getIndexToIns(arr, num) {\n arr = arr.sort(function(a, b){return a-b;});\n for (var i = 0; i < arr.length; i++) {\n if (arr[i] >= num)\n {\n return i;\n }\n }\n return arr.length;\n}"
],
"MDNlinks": [
"Array.sort()"