diff --git a/bonfireMDNlinks.js b/bonfireMDNlinks.js index 12d13e26ab..2c5087e453 100644 --- a/bonfireMDNlinks.js +++ b/bonfireMDNlinks.js @@ -38,46 +38,46 @@ var links = { // ========== OBJECT METHODS "Object.getOwnPropertyNames()": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/getOwnPropertyNames", "Object.keys()": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/keys", - "Object.hasOwnProperty()": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/hasOwnProperty", + "Object.prototype.hasOwnProperty()": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/hasOwnProperty", // ======== STRING METHODS - "String.charAt()": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/charAt", + "String.prototype.charAt()": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/charAt", "String.prototype.charCodeAt()": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/charCodeAt", - "String.concat()": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/concat", - "String.indexOf()": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/indexOf", + "String.prototype.concat()": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/concat", + "String.prototype.indexOf()": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/indexOf", "String.fromCharCode()": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/fromCharCode", - "String.lastIndexOf()": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/lastIndexOf", - "String.match()": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/match", - "String.replace()": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replace", - "String.slice()": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/slice", - "String.split()": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/split", - "String.substring()": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/substring", - "String.substr()": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/substr", - "String.toLowerCase()": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/toLowerCase", - "String.toString()": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/toString", - "String.toUpperCase()": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/toUpperCase", + "String.prototype.lastIndexOf()": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/lastIndexOf", + "String.prototype.match()": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/match", + "String.prototype.replace()": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replace", + "String.prototype.slice()": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/slice", + "String.prototype.split()": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/split", + "String.prototype.substring()": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/substring", + "String.prototype.substr()": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/substr", + "String.prototype.toLowerCase()": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/toLowerCase", + "String.prototype.toString()": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/toString", + "String.prototype.toUpperCase()": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/toUpperCase", // ======== ARRAY METHODS - "Array.concat()": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/concat", - "Array.every()": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/every", - "Array.filter()": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/filter", - "Array.forEach()": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/forEach", - "Array.indexOf()": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/indexOf", + "Array.prototype.concat()": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/concat", + "Array.prototype.every()": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/every", + "Array.prototype.filter()": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/filter", + "Array.prototype.forEach()": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/forEach", + "Array.prototype.indexOf()": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/indexOf", "Array.isArray()": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/isArray", - "Array.join()": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/join", - "Array.lastIndexOf()": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/lastIndexOf", - "Array.map()": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map", - "Array.pop()": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/pop", - "Array.push()": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/push", - "Array.reduce()": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/Reduce", - "Array.reverse()": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/reverse", - "Array.shift()": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/shift", - "Array.slice()": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/slice", - "Array.some()": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/some", - "Array.sort()": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort", - "Array.splice()": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/splice", - "Array.toString()": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/toString", + "Array.prototype.join()": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/join", + "Array.prototype.lastIndexOf()": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/lastIndexOf", + "Array.prototype.map()": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map", + "Array.prototype.pop()": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/pop", + "Array.prototype.push()": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/push", + "Array.prototype.reduce()": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/Reduce", + "Array.prototype.reverse()": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/reverse", + "Array.prototype.shift()": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/shift", + "Array.prototype.slice()": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/slice", + "Array.prototype.some()": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/some", + "Array.prototype.sort()": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort", + "Array.prototype.splice()": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/splice", + "Array.prototype.toString()": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/toString", // ======== STATEMENTS AND DECLARATIONS "Switch Statement": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/switch", @@ -86,7 +86,7 @@ var links = { "Math.max()": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/max", "Math.min()": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/min", "Math.pow()": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/pow", - "Remainder": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Arithmetic_Operators#Remainder_(.25)", + "Remainder": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Arithmetic_Operators#Remainder", // ======== GENERAL JAVASCRIPT REFERENCES "Arithmetic Operators": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Arithmetic_Operators", diff --git a/challenges/01-front-end-development-certification/advanced-bonfires.json b/challenges/01-front-end-development-certification/advanced-bonfires.json index 4c30428214..f5bc85349f 100644 --- a/challenges/01-front-end-development-certification/advanced-bonfires.json +++ b/challenges/01-front-end-development-certification/advanced-bonfires.json @@ -99,7 +99,7 @@ ], "type": "bonfire", "MDNlinks": [ - "Array.reduce()", + "Array.prototype.reduce()", "Symmetric Difference" ], "challengeType": 5, @@ -297,8 +297,8 @@ ], "type": "bonfire", "MDNlinks": [ - "String.split()", - "String.substr()", + "String.prototype.split()", + "String.prototype.substr()", "parseInt()" ], "challengeType": 5, @@ -436,7 +436,7 @@ ], "type": "bonfire", "MDNlinks": [ - "Array.reduce()" + "Array.prototype.reduce()" ], "challengeType": 5, "titleEs": "En parejas", diff --git a/challenges/01-front-end-development-certification/basic-bonfires.json b/challenges/01-front-end-development-certification/basic-bonfires.json index df254b7765..a987fc885c 100644 --- a/challenges/01-front-end-development-certification/basic-bonfires.json +++ b/challenges/01-front-end-development-certification/basic-bonfires.json @@ -95,9 +95,9 @@ ], "MDNlinks": [ "Global String Object", - "String.split()", - "Array.reverse()", - "Array.join()" + "String.prototype.split()", + "Array.prototype.reverse()", + "Array.prototype.join()" ], "challengeType": 5, "titleEs": "Invierte el texto", @@ -190,8 +190,8 @@ "function palindrome(str) {\n var string = str.toLowerCase().split(/[^A-Za-z0-9]/gi).join('');\n var aux = string.split('');\n if (aux.join('') === aux.reverse().join('')){\n return true;\n }\n\n return false;\n}" ], "MDNlinks": [ - "String.replace()", - "String.toLowerCase()" + "String.prototype.replace()", + "String.prototype.toLowerCase()" ], "challengeType": 5, "titleEs": "Verifica si es palíndromo", @@ -232,7 +232,7 @@ "function findLongestWord(str) {\n return str.split(' ').sort(function(a, b) { return b.length - a.length;})[0].length;\n}\n\nfindLongestWord('The quick brown fox jumped over the lazy dog');\n" ], "MDNlinks": [ - "String.split()", + "String.prototype.split()", "String.length" ], "challengeType": 5, @@ -270,7 +270,7 @@ "function titleCase(str) {\n return str.split(' ').map(function(word) {\n return word.charAt(0).toUpperCase() + word.substring(1).toLowerCase();\n }).join(' ');\n}\n\ntitleCase(\"I'm a little tea pot\");\n" ], "MDNlinks": [ - "String.split()" + "String.prototype.split()" ], "challengeType": 5, "titleEs": "Aplica formato de título", @@ -349,7 +349,7 @@ "function confirmEnding(str, target) {\n return str.substring(str.length-target.length) === target;\n};\n" ], "MDNlinks": [ - "String.substr()" + "String.prototype.substr()" ], "challengeType": 5, "titleEs": "Confirma la terminación", @@ -427,7 +427,7 @@ "function truncateString(str, num) {\n if(str.length > num ) {\n if(num > 3) {\n return str.slice(0, num - 3) + '...';\n } else {\n return str.slice(0,num) + '...';\n }\n } \n return str;\n}" ], "MDNlinks": [ - "String.slice()" + "String.prototype.slice()" ], "challengeType": 5, "titleEs": "Trunca una cadena de texto", @@ -468,8 +468,8 @@ "function chunkArrayInGroups(arr, size) {\n var out = [];\n for (var i = 0; i < arr.length; i+=size) {\n out.push(arr.slice(i,i+size));\n }\n return out;\n}\n\nchunkArrayInGroups(['a', 'b', 'c', 'd'], 2);\n" ], "MDNlinks": [ - "Array.push()", - "Array.slice()" + "Array.prototype.push()", + "Array.prototype.slice()" ], "challengeType": 5, "titleEs": "En mil pedazos", @@ -508,8 +508,8 @@ "function slasher(arr, howMany) {\n // it doesn't always pay to be first\n return arr.slice(howMany);\n}\n\nslasher([1, 2, 3], 2);\n" ], "MDNlinks": [ - "Array.slice()", - "Array.splice()" + "Array.prototype.slice()", + "Array.prototype.splice()" ], "challengeType": 5, "titleEs": "Vuélale la cabeza", @@ -553,7 +553,7 @@ "function mutation(arr) {\n var hash = Object.create(null);\n arr[0].toLowerCase().split('').forEach(function(c) {\n hash[c] = true;\n });\n return !arr[1].toLowerCase().split('').filter(function(c) {\n return !hash[c];\n }).length;\n}\n\nmutation(['hello', 'hey']);\n" ], "MDNlinks": [ - "String.indexOf()" + "String.prototype.indexOf()" ], "challengeType": 5, "titleEs": "Mutaciones", @@ -594,7 +594,7 @@ ], "MDNlinks": [ "Boolean Objects", - "Array.filter()" + "Array.prototype.filter()" ], "challengeType": 5, "titleEs": "Detector de mentiras", @@ -633,7 +633,7 @@ ], "MDNlinks": [ "Arguments object", - "Array.filter()" + "Array.prototype.filter()" ], "challengeType": 5, "titleEs": "Buscar y destruir", @@ -674,7 +674,7 @@ "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()" + "Array.prototype.sort()" ], "challengeType": 5, "titleEs": "¿Cuál es mi asiento?", diff --git a/challenges/01-front-end-development-certification/intermediate-bonfires.json b/challenges/01-front-end-development-certification/intermediate-bonfires.json index 020a54924b..c5adcaedcc 100644 --- a/challenges/01-front-end-development-certification/intermediate-bonfires.json +++ b/challenges/01-front-end-development-certification/intermediate-bonfires.json @@ -33,7 +33,7 @@ "MDNlinks": [ "Math.max()", "Math.min()", - "Array.reduce()" + "Array.prototype.reduce()" ], "isRequired": true, "challengeType": 5, @@ -82,10 +82,10 @@ "type": "bonfire", "MDNlinks": [ "Comparison Operators", - "Array.slice()", - "Array.filter()", - "Array.indexOf()", - "Array.concat()" + "Array.prototype.slice()", + "Array.prototype.filter()", + "Array.prototype.indexOf()", + "Array.prototype.concat()" ], "isRequired": true, "challengeType": 5, @@ -148,9 +148,9 @@ "type": "bonfire", "MDNlinks": [ "Roman Numerals", - "Array.splice()", - "Array.indexOf()", - "Array.join()" + "Array.prototype.splice()", + "Array.prototype.indexOf()", + "Array.prototype.join()" ], "isRequired": true, "challengeType": 5, @@ -200,7 +200,7 @@ "type": "bonfire", "MDNlinks": [ "Global Object", - "Object.hasOwnProperty()", + "Object.prototype.hasOwnProperty()", "Object.keys()" ], "isRequired": true, @@ -248,9 +248,9 @@ ], "type": "bonfire", "MDNlinks": [ - "Array.splice()", - "String.replace()", - "Array.join()" + "Array.prototype.splice()", + "String.prototype.replace()", + "Array.prototype.join()" ], "isRequired": true, "challengeType": 5, @@ -301,11 +301,11 @@ ], "type": "bonfire", "MDNlinks": [ - "Array.indexOf()", - "Array.push()", - "Array.join()", - "String.substr()", - "String.split()" + "Array.prototype.indexOf()", + "Array.prototype.push()", + "Array.prototype.join()", + "String.prototype.substr()", + "String.prototype.split()" ], "isRequired": true, "challengeType": 5, @@ -352,8 +352,8 @@ ], "type": "bonfire", "MDNlinks": [ - "Array.push()", - "String.split()" + "Array.prototype.push()", + "String.prototype.split()" ], "isRequired": true, "challengeType": 5, @@ -499,7 +499,7 @@ "type": "bonfire", "MDNlinks": [ "Arguments object", - "Array.reduce()" + "Array.prototype.reduce()" ], "isRequired": true, "challengeType": 5, @@ -551,7 +551,7 @@ "MDNlinks": [ "RegExp", "HTML Entities", - "String.replace()" + "String.prototype.replace()" ], "isRequired": true, "challengeType": 5, @@ -595,7 +595,7 @@ "type": "bonfire", "MDNlinks": [ "RegExp", - "String.replace()" + "String.prototype.replace()" ], "isRequired": true, "challengeType": 5, @@ -685,7 +685,7 @@ "type": "bonfire", "MDNlinks": [ "For Loops", - "Array.push()" + "Array.prototype.push()" ], "isRequired": true, "challengeType": 5, @@ -775,7 +775,7 @@ ], "type": "bonfire", "MDNlinks": [ - "Array.filter()" + "Array.prototype.filter()" ], "isRequired": true, "challengeType": 5, @@ -821,8 +821,8 @@ "type": "bonfire", "MDNlinks": [ "Arguments object", - "Array.shift()", - "Array.slice()" + "Array.prototype.shift()", + "Array.prototype.slice()" ], "isRequired": true, "challengeType": 5,