Merge pull request #45 from Bouncey/fix/ui
Fix up the UI and pull in the latest seed files
This commit is contained in:
committed by
Mrugesh Mohapatra
parent
04a6a2026c
commit
f962d7774a
@@ -75,8 +75,8 @@
|
||||
"",
|
||||
"convertToF(30);"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -151,8 +151,8 @@
|
||||
"",
|
||||
"reverseString(\"hello\");"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -232,8 +232,8 @@
|
||||
"",
|
||||
"factorialize(5);"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -311,8 +311,8 @@
|
||||
"",
|
||||
"findLongestWordLength(\"The quick brown fox jumped over the lazy dog\");"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -383,8 +383,8 @@
|
||||
"",
|
||||
"largestOfFour([[4, 5, 1, 3], [13, 27, 18, 26], [32, 35, 37, 39], [1000, 1001, 857, 1]]);"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -483,8 +483,8 @@
|
||||
"",
|
||||
"confirmEnding(\"Bastian\", \"n\");"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -563,8 +563,8 @@
|
||||
"",
|
||||
"repeatStringNumTimes(\"abc\", 3);"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -639,8 +639,8 @@
|
||||
"",
|
||||
"truncateString(\"A-tisket a-tasket A green and yellow basket\", 8);"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -706,8 +706,8 @@
|
||||
"",
|
||||
"findElement([1, 2, 3, 4], num => num % 2 === 0);"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -809,8 +809,8 @@
|
||||
"",
|
||||
"booWho(null);"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -879,8 +879,8 @@
|
||||
"",
|
||||
"titleCase(\"I'm a little tea pot\");"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -955,8 +955,11 @@
|
||||
"",
|
||||
"frankenSplice([1, 2, 3], [4, 5, 6], 1);"
|
||||
],
|
||||
"head": "",
|
||||
"tail": "let testArr1 = [1, 2];\nlet testArr2 = [\"a\", \"b\"];"
|
||||
"head": [],
|
||||
"tail": [
|
||||
"let testArr1 = [1, 2];",
|
||||
"let testArr2 = [\"a\", \"b\"];"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -1029,8 +1032,8 @@
|
||||
"",
|
||||
"bouncer([7, \"ate\", \"\", false, 9]);"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -1151,8 +1154,8 @@
|
||||
"",
|
||||
"getIndexToIns([40, 60], 50);"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -1247,8 +1250,8 @@
|
||||
"",
|
||||
"mutation([\"hello\", \"hey\"]);"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -1328,13 +1331,10 @@
|
||||
"",
|
||||
"chunkArrayInGroups([\"a\", \"b\", \"c\", \"d\"], 2);"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"fileName": "02-javascript-algorithms-and-data-structures/basic-algorithm-scripting.json",
|
||||
"superBlock": "javascript-algorithms-and-data-structures",
|
||||
"superOrder": 2
|
||||
]
|
||||
}
|
@@ -51,8 +51,8 @@
|
||||
"contents": [
|
||||
"let yourArray; // change this line"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -107,8 +107,8 @@
|
||||
"//change code above this line",
|
||||
"console.log(myArray);"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -158,8 +158,8 @@
|
||||
"// do not change code below this line",
|
||||
"console.log(mixedNumbers(['IV', 5, 'six']));"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -209,8 +209,8 @@
|
||||
"// do not change code below this line",
|
||||
"console.log(popShift(['challenge', 'is', 'not', 'complete']));"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -257,8 +257,8 @@
|
||||
"// do not change code below this line",
|
||||
"console.log(sumOfTen([2, 5, 1, 5, 2, 1]));"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -311,8 +311,8 @@
|
||||
"// do not change code below this line",
|
||||
"console.log(htmlColorNames(['DarkGoldenRod', 'WhiteSmoke', 'LavenderBlush', 'PaleTurqoise', 'FireBrick']));"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -356,8 +356,8 @@
|
||||
"// do not change code below this line",
|
||||
"console.log(forecast(['cold', 'rainy', 'warm', 'sunny', 'cool', 'thunderstorms']));"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -418,8 +418,8 @@
|
||||
"// change code here to test different cases:",
|
||||
"console.log(copyMachine([true, false, true], 2));"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -463,8 +463,8 @@
|
||||
"// do not change code below this line",
|
||||
"console.log(spreadOut());"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -520,8 +520,8 @@
|
||||
"// change code here to test different cases:",
|
||||
"console.log(quickCheck(['squash', 'onions', 'shallots'], 'mushrooms'));"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -580,8 +580,8 @@
|
||||
"// change code here to test different cases:",
|
||||
"console.log(filteredArray([[3, 2, 3], [1, 6, 3], [3, 13, 26], [19, 3, 9]], 3));"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -643,8 +643,8 @@
|
||||
" // change code above this line",
|
||||
"];"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -707,8 +707,8 @@
|
||||
"",
|
||||
"console.log(foods);"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -766,8 +766,8 @@
|
||||
"",
|
||||
"console.log(userActivity);"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -832,8 +832,8 @@
|
||||
"// change code below this line to test different cases:",
|
||||
"console.log(checkInventory(\"apples\"));"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -884,8 +884,8 @@
|
||||
"",
|
||||
"console.log(foods);"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -950,8 +950,8 @@
|
||||
"",
|
||||
"console.log(isEveryoneHere(users));"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -1014,8 +1014,8 @@
|
||||
"",
|
||||
"console.log(countOnline(users));"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -1075,8 +1075,8 @@
|
||||
"",
|
||||
"console.log(getArrayOfUsers(users));"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -1141,13 +1141,10 @@
|
||||
"",
|
||||
"console.log(addFriend(user, 'Pete'));"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"fileName": "02-javascript-algorithms-and-data-structures/basic-data-structures.json",
|
||||
"superBlock": "javascript-algorithms-and-data-structures",
|
||||
"superOrder": 2
|
||||
]
|
||||
}
|
File diff suppressed because it is too large
Load Diff
@@ -43,8 +43,8 @@
|
||||
"let sumAB = a + b;",
|
||||
"console.log(sumAB);"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -73,7 +73,7 @@
|
||||
},
|
||||
{
|
||||
"text": "Use <code>console.clear()</code> to modify your output so that <code>outputOne</code> variable only outputs once.",
|
||||
"testString": "assert(code.match(/console\\.clear\\(\\)/g), 'Use <code>console.clear()</code> to modify your output so that <code>outputOne</code> variable only outputs once.');"
|
||||
"testString": "assert(code.match(/(?<!\\/\\/ Use )console\\.clear\\(\\)/g), 'Use <code>console.clear()</code> to modify your output so that <code>outputOne</code> variable only outputs once.');"
|
||||
}
|
||||
],
|
||||
"solutions": [],
|
||||
@@ -101,8 +101,8 @@
|
||||
"",
|
||||
""
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -149,8 +149,8 @@
|
||||
"// Add your code below this line",
|
||||
""
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -202,8 +202,8 @@
|
||||
"let netWorkingCapital = recievables - payable;",
|
||||
"console.log(`Net working capital is: ${netWorkingCapital}`);"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -242,8 +242,8 @@
|
||||
"let arraySum = myArray.reduce((previous, current => previous + current);",
|
||||
"console.log(`Sum of array values is: ${arraySum}`);"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -285,8 +285,8 @@
|
||||
"let innerHtml = \"<p>Click here to <a href=\"#Home\">return home</a></p>\";",
|
||||
"console.log(innerHtml);"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -336,8 +336,8 @@
|
||||
"",
|
||||
"console.log(result);"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -382,8 +382,8 @@
|
||||
"let result = getNine;",
|
||||
"console.log(result);"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -426,8 +426,8 @@
|
||||
"let power = raiseToPower(exp, base);",
|
||||
"console.log(power);"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -483,8 +483,8 @@
|
||||
"",
|
||||
"countToFive();"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -543,8 +543,8 @@
|
||||
"let matrix = zeroArray(3, 2);",
|
||||
"console.log(matrix);"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -587,13 +587,10 @@
|
||||
" }",
|
||||
"}"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"fileName": "02-javascript-algorithms-and-data-structures/debugging.json",
|
||||
"superBlock": "javascript-algorithms-and-data-structures",
|
||||
"superOrder": 2
|
||||
]
|
||||
}
|
@@ -11,7 +11,7 @@
|
||||
"One of the biggest problems with declaring variables with the <code>var</code> keyword is that you can overwrite variable declarations without an error.",
|
||||
"<blockquote>var camper = 'James';<br>var camper = 'David';<br>console.log(camper);<br>// logs 'David'</blockquote>",
|
||||
"As you can see in the code above, the <code>camper</code> variable is originally declared as <code>James</code> and then overridden to be <code>David</code>.",
|
||||
"In a small application, you might not run into this type of problem, but when your code becomes larger, you might accidently overwrite a variable that you did not intend to overwrite.",
|
||||
"In a small application, you might not run into this type of problem, but when your code becomes larger, you might accidentally overwrite a variable that you did not intend to overwrite.",
|
||||
"Because this behavior does not throw an error, searching and fixing bugs becomes more difficult.<br>",
|
||||
"A new keyword called <code>let</code> was introduced in ES6 to solve this potential issue with the <code>var</code> keyword.",
|
||||
"If you were to replace <code>var</code> with <code>let</code> in the variable declarations of the code above, the result would be an error.",
|
||||
@@ -58,8 +58,8 @@
|
||||
"}",
|
||||
"catTalk();"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -71,7 +71,7 @@
|
||||
"The <code>let</code> keyword behaves similarly, but with some extra features. When you declare a variable with the <code>let</code> keyword inside a block, statement, or expression, its scope is limited to that block, statement, or expression.",
|
||||
"For example:",
|
||||
"<blockquote>var numArray = [];<br>for (var i = 0; i < 3; i++) {<br> numArray.push(i);<br>}<br>console.log(numArray);<br>// returns [0, 1, 2]<br>console.log(i);<br>// returns 3</blockquote>",
|
||||
"With the <code>var</code> keyword, <code>i</code> is declared globally. So when <code>i++</code> is executed, it updates the global variable. This code is similiar to the following:",
|
||||
"With the <code>var</code> keyword, <code>i</code> is declared globally. So when <code>i++</code> is executed, it updates the global variable. This code is similar to the following:",
|
||||
"<blockquote>var numArray = [];<br>var i;<br>for (i = 0; i < 3; i++) {<br> numArray.push(i);<br>}<br>console.log(numArray);<br>// returns [0, 1, 2]<br>console.log(i);<br>// returns 3</blockquote>",
|
||||
"This behavior will cause problems if you were to create a function and store it for later use inside a for loop that uses the <code>i</code> variable. This is because the stored function will always refer to the value of the updated global <code>i</code> variable.",
|
||||
"<blockquote>var printNumTwo;<br>for (var i = 0; i < 3; i++) {<br> if(i === 2){<br> printNumTwo = function() {<br> return i;<br> };<br> }<br>}<br>console.log(printNumTwo());<br>// returns 3</blockquote>",
|
||||
@@ -106,7 +106,6 @@
|
||||
"ext": "js",
|
||||
"name": "index",
|
||||
"contents": [
|
||||
"",
|
||||
"function checkScope() {",
|
||||
"\"use strict\";",
|
||||
" var i = \"function scope\";",
|
||||
@@ -118,8 +117,8 @@
|
||||
" return i;",
|
||||
"}"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -173,8 +172,8 @@
|
||||
"}",
|
||||
"printManyTimes(\"freeCodeCamp\");"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -229,8 +228,8 @@
|
||||
"}",
|
||||
"editInPlace();"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -290,8 +289,8 @@
|
||||
"}",
|
||||
"const PI = freezeObj();"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -347,8 +346,8 @@
|
||||
" return new Date();",
|
||||
"};"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -401,8 +400,8 @@
|
||||
"// test your code",
|
||||
"console.log(myConcat([1, 2], [3, 4, 5]));"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -472,8 +471,8 @@
|
||||
"const squaredIntegers = squareList(realNumberArray);",
|
||||
"console.log(squaredIntegers);"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -521,8 +520,8 @@
|
||||
"console.log(increment(5, 2)); // returns 7",
|
||||
"console.log(increment(5)); // returns NaN"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -535,7 +534,7 @@
|
||||
"<blockquote>function howMany(...args) {<br> return \"You have passed \" + args.length + \" arguments.\";<br>}<br>console.log(howMany(0, 1, 2)); // You have passed 3 arguments<br>console.log(howMany(\"string\", null, [1, 2, 3], { })); // You have passed 4 arguments.</blockquote>",
|
||||
"The rest operator eliminates the need to check the <code>args</code> array and allows us to apply <code>map()</code>, <code>filter()</code> and <code>reduce()</code> on the parameters array.",
|
||||
"<hr>",
|
||||
"Modify the function <code>sum</code> so that is uses the rest operator and it works in the same way with any number of parameters."
|
||||
"Modify the function <code>sum</code> so that it uses the rest operator and it works in the same way with any number of parameters."
|
||||
],
|
||||
"tests": [
|
||||
{
|
||||
@@ -578,8 +577,8 @@
|
||||
"})();",
|
||||
"console.log(sum(1, 2, 3)); // 6"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -631,8 +630,8 @@
|
||||
"})();",
|
||||
"console.log(arr2);"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -689,8 +688,8 @@
|
||||
"",
|
||||
"console.log(getLength('FreeCodeCamp'));"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -740,8 +739,8 @@
|
||||
"",
|
||||
"console.log(getMaxOfTmrw(LOCAL_FORECAST)); // should be 84.6"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -793,8 +792,8 @@
|
||||
"console.log(a); // should be 6",
|
||||
"console.log(b); // should be 8"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -808,7 +807,7 @@
|
||||
"Variables <code>a</code> and <code>b</code> take the first and second values from the array. After that, because of rest operator's presence, <code>arr</code> gets rest of the values in the form of an array.",
|
||||
"The rest element only works correctly as the last variable in the list. As in, you cannot use the rest operator to catch a subarray that leaves out last element of the original array.",
|
||||
"<hr>",
|
||||
"Use destructuring assignment with the rest operator to perform an effective <code>Array.prototype.slice()</code> so that <code>arr</code> is a sub-array of the original array <code>source</code> with the first two elements ommitted."
|
||||
"Use destructuring assignment with the rest operator to perform an effective <code>Array.prototype.slice()</code> so that <code>arr</code> is a sub-array of the original array <code>source</code> with the first two elements omitted."
|
||||
],
|
||||
"tests": [
|
||||
{
|
||||
@@ -817,7 +816,7 @@
|
||||
},
|
||||
{
|
||||
"text": "destructuring was used.",
|
||||
"testString": "getUserInput => assert(getUserInput('index').match(/\\[\\s*\\w\\s*,\\s*\\w\\s*,\\s*...arr\\s*\\]/g),'destructuring was used.');"
|
||||
"testString": "getUserInput => assert(getUserInput('index').match(/\\[\\s*\\w*\\s*,\\s*\\w*\\s*,\\s*...arr\\s*\\]/g),'destructuring was used.');"
|
||||
},
|
||||
{
|
||||
"text": "<code>Array.slice()</code> was not used.",
|
||||
@@ -846,8 +845,8 @@
|
||||
"console.log(arr); // should be [3,4,5,6,7,8,9,10]",
|
||||
"console.log(source); // should be [1,2,3,4,5,6,7,8,9,10];"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -911,8 +910,8 @@
|
||||
"console.log(stats); // should be object",
|
||||
"console.log(half(stats)); // should be 28.015"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -976,8 +975,8 @@
|
||||
" **/",
|
||||
"const resultDisplayArray = makeList(result.failure);"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -985,7 +984,7 @@
|
||||
"id": "587d7b8a367417b2b2512b4f",
|
||||
"title": "Write Concise Object Literal Declarations Using Simple Fields",
|
||||
"description": [
|
||||
"ES6 adds some nice support for easily definining object literals.",
|
||||
"ES6 adds some nice support for easily defining object literals.",
|
||||
"Consider the following code:",
|
||||
"<blockquote>const getMousePosition = (x, y) => ({<br> x: x,<br> y: y<br>});</blockquote>",
|
||||
"<code>getMousePosition</code> is a simple function that returns an object containing two fields.",
|
||||
@@ -1027,8 +1026,8 @@
|
||||
"};",
|
||||
"console.log(createPerson(\"Zodiac Hasbro\", 56, \"male\")); // returns a proper object"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -1075,8 +1074,8 @@
|
||||
"bicycle.setGear(3);",
|
||||
"console.log(bicycle.gear);"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -1130,8 +1129,8 @@
|
||||
"const carrot = new Vegetable('carrot');",
|
||||
"console.log(carrot.name); // => should be 'carrot'"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -1147,7 +1146,7 @@
|
||||
"Notice the syntax we are using to invoke the getter and setter - as if they are not even functions.",
|
||||
"Getters and setters are important, because they hide internal implementation details.",
|
||||
"<hr>",
|
||||
"Use <code>class</code> keyword to create a Thermostat class. The constructor accepts Farenheit temperature.",
|
||||
"Use <code>class</code> keyword to create a Thermostat class. The constructor accepts Fahrenheit temperature.",
|
||||
"Now create <code>getter</code> and <code>setter</code> in the class, to obtain the temperature in Celsius scale.",
|
||||
"Remember that <code>C = 5/9 * (F - 32)</code> and <code>F = C * 9.0 / 5 + 32</code>, where F is the value of temperature in Fahrenheit scale, and C is the value of the same temperature in Celsius scale",
|
||||
"Note",
|
||||
@@ -1187,13 +1186,13 @@
|
||||
" return Thermostat;",
|
||||
"}",
|
||||
"const Thermostat = makeClass();",
|
||||
"const thermos = new Thermostat(76); // setting in Farenheit scale",
|
||||
"const thermos = new Thermostat(76); // setting in Fahrenheit scale",
|
||||
"let temp = thermos.temperature; // 24.44 in C",
|
||||
"thermos.temperature = 26;",
|
||||
"temp = thermos.temperature; // 26 in C"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -1210,7 +1209,7 @@
|
||||
"There are a few ways to write an <code>import</code> statement, but the above is a very common use-case.",
|
||||
"<strong>Note</strong><br>The whitespace surrounding the function inside the curly braces is a best practice - it makes it easier to read the <code>import</code> statement.",
|
||||
"<strong>Note</strong><br>The lessons in this section handle non-browser features. <code>import</code>, and the statements we introduce in the rest of these lessons, won't work on a browser directly. However, we can use various tools to create code out of this to make it work in browser.",
|
||||
"<strong>Note</strong><br>In most cases, the file path requires a <code>./</code> before it; otherwise, node will look in the <code>node_modules</code> directory first trying to load it as a dependencie.",
|
||||
"<strong>Note</strong><br>In most cases, the file path requires a <code>./</code> before it; otherwise, node will look in the <code>node_modules</code> directory first trying to load it as a dependency.",
|
||||
"<hr>",
|
||||
"Add the appropriate <code>import</code> statement that will allow the current file to use the <code>capitalizeString</code> function. The file where this function lives is called <code>\"string_functions\"</code>, and it is in the same directory as the current file."
|
||||
],
|
||||
@@ -1233,8 +1232,14 @@
|
||||
"\"use strict\";",
|
||||
"capitalizeString(\"hello!\");"
|
||||
],
|
||||
"head": "window.require = function (str) {\nif (str === 'string_functions') {\nreturn {\ncapitalizeString: str => str.toUpperCase()\n}}};",
|
||||
"tail": ""
|
||||
"head": [
|
||||
"window.require = function (str) {",
|
||||
"if (str === 'string_functions') {",
|
||||
"return {",
|
||||
"capitalizeString: str => str.toUpperCase()",
|
||||
"}}};"
|
||||
],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -1275,8 +1280,10 @@
|
||||
"const foo = \"bar\";",
|
||||
"const boo = \"far\";"
|
||||
],
|
||||
"head": "window.exports = function(){};",
|
||||
"tail": ""
|
||||
"head": [
|
||||
"window.exports = function(){};"
|
||||
],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -1286,7 +1293,7 @@
|
||||
"description": [
|
||||
"Suppose you have a file that you wish to import all of its contents into the current file. This can be done with the <dfn>import *</dfn> syntax.",
|
||||
"Here's an example where the contents of a file named <code>\"math_functions\"</code> are imported into a file in the same directory:",
|
||||
"<blockquote>import * as myMathModule from \"math_functions\"<br>myMathModule.add(2,3);<br>myMathModule.subtract(5,3);</blockquote>",
|
||||
"<blockquote>import * as myMathModule from \"math_functions\";<br>myMathModule.add(2,3);<br>myMathModule.subtract(5,3);</blockquote>",
|
||||
"And breaking down that code:",
|
||||
"<blockquote>import * as object_with_name_of_your_choice from \"file_path_goes_here\"<br>object_with_name_of_your_choice.imported_function</blockquote>",
|
||||
"You may use any name following the <code>import * as </code>portion of the statement. In order to utilize this method, it requires an object that receives the imported values. From here, you will use the dot notation to call your imported values.",
|
||||
@@ -1296,7 +1303,7 @@
|
||||
"tests": [
|
||||
{
|
||||
"text": "Properly uses <code>import * as</code> syntax.",
|
||||
"testString": "getUserInput => assert(getUserInput('index').match(/import\\s+\\*\\s+as\\s+myStringModule\\s+from\\s+\"capitalize_strings\"/g), 'Properly uses <code>import * as</code> syntax.');"
|
||||
"testString": "assert(code.match(/import\\s+\\*\\s+as\\s+[a-zA-Z0-9_$]+\\s+from\\s*\"\\s*capitalize_strings\\s*\"\\s*;/gi), 'Properly uses <code>import * as</code> syntax.');"
|
||||
}
|
||||
],
|
||||
"type": "waypoint",
|
||||
@@ -1309,12 +1316,17 @@
|
||||
"ext": "js",
|
||||
"name": "index",
|
||||
"contents": [
|
||||
"\"use strict\";",
|
||||
"myStringModule.capitalize(\"foo\");",
|
||||
"myStringModule.lowercase(\"Foo\");"
|
||||
"\"use strict\";"
|
||||
],
|
||||
"head": "window.require = function(str) {\nif (str === 'capitalize_strings') {\nreturn {\ncapitalize: str => str.toUpperCase(),\nlowercase: str => str.toLowerCase()\n}}};",
|
||||
"tail": ""
|
||||
"head": [
|
||||
"window.require = function(str) {",
|
||||
"if (str === 'capitalize_strings') {",
|
||||
"return {",
|
||||
"capitalize: str => str.toUpperCase(),",
|
||||
"lowercase: str => str.toLowerCase()",
|
||||
"}}};"
|
||||
],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -1349,8 +1361,10 @@
|
||||
"\"use strict\";",
|
||||
"function subtract(x,y) {return x - y;}"
|
||||
],
|
||||
"head": "window.exports = function(){};",
|
||||
"tail": ""
|
||||
"head": [
|
||||
"window.exports = function(){};"
|
||||
],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -1384,13 +1398,16 @@
|
||||
"\"use strict\";",
|
||||
"subtract(7,4);"
|
||||
],
|
||||
"head": "window.require = function(str) {\nif (str === 'math_functions') {\nreturn function(a, b) {\nreturn a - b;\n}}};",
|
||||
"tail": ""
|
||||
"head": [
|
||||
"window.require = function(str) {",
|
||||
"if (str === 'math_functions') {",
|
||||
"return function(a, b) {",
|
||||
"return a - b;",
|
||||
"}}};"
|
||||
],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"fileName": "02-javascript-algorithms-and-data-structures/es6.json",
|
||||
"superBlock": "javascript-algorithms-and-data-structures",
|
||||
"superOrder": 2
|
||||
]
|
||||
}
|
@@ -69,8 +69,8 @@
|
||||
"",
|
||||
"console.log(tea4TeamFCC);"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -159,8 +159,8 @@
|
||||
" tea4BlackTeamFCC",
|
||||
");"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -177,7 +177,7 @@
|
||||
"A Window object is made up of tabs, and you usually have more than one Window open. The titles of each open site in each Window object is held in an array. After working in the browser (opening new tabs, merging windows, and closing tabs), you want to print the tabs that are still open. Closed tabs are removed from the array and new tabs (for simplicity) get added to the end of it.",
|
||||
"The code editor shows an implementation of this functionality with functions for <code>tabOpen()</code>, <code>tabClose()</code>, and <code>join()</code>. The array <code>tabs</code> is part of the Window object that stores the name of the open pages.",
|
||||
"<h4>Instructions<h4>",
|
||||
"Run the code in the editor. It's using a method that has side effects in the program, causing incorrect output. The final list of open tabs should be <code>['FB', 'Gitter', 'Reddit', 'Twitter', 'Medium', 'Netflix', 'YouTube', 'Vine', 'GMail', 'Work mail', 'Docs', 'freeCodeCamp', 'new tab']</code> but the output will be slightly different.",
|
||||
"Run the code in the editor. It's using a method that has side effects in the program, causing incorrect output. The final list of open tabs should be <code>['FB', 'Gitter', 'Reddit', 'Twitter', 'Medium', 'new tab', 'Netflix', 'YouTube', 'Vine', 'GMail', 'Work mail', 'Docs', 'freeCodeCamp', 'new tab']</code> but the output will be slightly different.",
|
||||
"Work through the code and see if you can figure out the problem, then advance to the next challenge to learn more."
|
||||
],
|
||||
"tests": [
|
||||
@@ -236,8 +236,8 @@
|
||||
"",
|
||||
"alert(finalTabs.tabs);"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -288,8 +288,8 @@
|
||||
"var newValue = incrementer(); // Should equal 5",
|
||||
"console.log(fixedValue); // Should print 4"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -345,8 +345,8 @@
|
||||
"var newValue = incrementer(fixedValue); // Should equal 5",
|
||||
"console.log(fixedValue); // Should print 4"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -427,8 +427,8 @@
|
||||
"",
|
||||
"console.log(bookList);"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -598,8 +598,8 @@
|
||||
"",
|
||||
"console.log(rating); "
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -651,8 +651,8 @@
|
||||
" return item * 2;",
|
||||
"});"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -816,8 +816,8 @@
|
||||
"",
|
||||
"console.log(filteredList); "
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -867,8 +867,8 @@
|
||||
" return item % 2 === 1;",
|
||||
"});"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -924,8 +924,8 @@
|
||||
"var inputAnim = [\"Cat\", \"Dog\", \"Tiger\", \"Zebra\", \"Ant\"];",
|
||||
"sliceArray(inputAnim, 1, 3);"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -978,8 +978,8 @@
|
||||
"var inputCities = [\"Chicago\", \"Delhi\", \"Islamabad\", \"London\", \"Berlin\"];",
|
||||
"nonMutatingSplice(inputCities);"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -1031,8 +1031,8 @@
|
||||
"var second = [4, 5];",
|
||||
"nonMutatingConcat(first, second);"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -1090,8 +1090,8 @@
|
||||
"var second = [4, 5];",
|
||||
"nonMutatingPush(first, second);"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -1261,8 +1261,8 @@
|
||||
"",
|
||||
"console.log(averageRating); "
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -1314,8 +1314,8 @@
|
||||
"}",
|
||||
"alphabeticalOrder([\"a\", \"d\", \"c\", \"a\", \"z\", \"g\"]);"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -1365,8 +1365,8 @@
|
||||
"}",
|
||||
"nonMutatingSort(globalArray);"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -1420,8 +1420,8 @@
|
||||
"}",
|
||||
"splitify(\"Hello World,I-am code\");"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -1482,8 +1482,8 @@
|
||||
"}",
|
||||
"sentensify(\"May-the-force-be-with-you\");"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -1553,8 +1553,8 @@
|
||||
"",
|
||||
"var winterComing = urlSlug(globalTitle); // Should be \"winter-is-coming\""
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -1605,8 +1605,8 @@
|
||||
"}",
|
||||
"checkPositive([1, 2, 3, -4, 5]);"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -1657,8 +1657,8 @@
|
||||
"}",
|
||||
"checkPositive([1, 2, 3, -4, 5]);"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -1715,13 +1715,10 @@
|
||||
"}",
|
||||
"add(10)(20)(30);"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"fileName": "02-javascript-algorithms-and-data-structures/functional-programming.json",
|
||||
"superBlock": "javascript-algorithms-and-data-structures",
|
||||
"superOrder": 2
|
||||
]
|
||||
}
|
@@ -80,8 +80,8 @@
|
||||
"",
|
||||
"sumAll([1, 4]);"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -198,8 +198,8 @@
|
||||
"",
|
||||
"diffArray([1, 2, 3, 5], [1, 2, 3, 4, 5]);"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -277,8 +277,8 @@
|
||||
"",
|
||||
"destroyer([1, 2, 3, 1, 2, 3], 2, 3);"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -363,8 +363,8 @@
|
||||
"",
|
||||
"whatIsInAName([{ first: \"Romeo\", last: \"Montague\" }, { first: \"Mercutio\", last: null }, { first: \"Tybalt\", last: \"Capulet\" }], { last: \"Capulet\" });"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -437,8 +437,8 @@
|
||||
"",
|
||||
"spinalCase('This Is Spinal Tap');"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -529,8 +529,8 @@
|
||||
"",
|
||||
"translatePigLatin(\"consonant\");"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -614,8 +614,8 @@
|
||||
"",
|
||||
"myReplace(\"A quick brown fox jumped over the lazy dog\", \"jumped\", \"leaped\");"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -690,8 +690,8 @@
|
||||
"",
|
||||
"pairElement(\"GCG\");"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -765,8 +765,8 @@
|
||||
"",
|
||||
"fearNotLetter(\"abce\");"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -842,8 +842,8 @@
|
||||
"",
|
||||
"uniteUnique([1, 3, 2], [5, 2, 1, 4], [2, 1]);"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -924,8 +924,8 @@
|
||||
"",
|
||||
"convertHTML(\"Dolce & Gabbana\");"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -1005,8 +1005,8 @@
|
||||
"",
|
||||
"sumFibs(4);"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -1075,8 +1075,8 @@
|
||||
"",
|
||||
"sumPrimes(10);"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -1157,8 +1157,8 @@
|
||||
"",
|
||||
"smallestCommons([1,5]);"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -1238,8 +1238,8 @@
|
||||
"",
|
||||
"dropElements([1, 2, 3], function(n) {return n < 3; });"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -1306,8 +1306,8 @@
|
||||
"",
|
||||
"steamrollArray([1, [2], [3, [[4]]]]);"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -1369,8 +1369,8 @@
|
||||
"",
|
||||
"binaryAgent(\"01000001 01110010 01100101 01101110 00100111 01110100 00100000 01100010 01101111 01101110 01100110 01101001 01110010 01100101 01110011 00100000 01100110 01110101 01101110 00100001 00111111\");"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -1463,8 +1463,8 @@
|
||||
"",
|
||||
"truthCheck([{\"user\": \"Tinky-Winky\", \"sex\": \"male\"}, {\"user\": \"Dipsy\", \"sex\": \"male\"}, {\"user\": \"Laa-Laa\", \"sex\": \"female\"}, {\"user\": \"Po\", \"sex\": \"female\"}], \"sex\");"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -1551,8 +1551,8 @@
|
||||
"",
|
||||
"addTogether(2,3);"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -1678,8 +1678,8 @@
|
||||
"var bob = new Person('Bob Ross');",
|
||||
"bob.getFullName();"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -1761,13 +1761,10 @@
|
||||
"",
|
||||
"orbitalPeriod([{name : \"sputnik\", avgAlt : 35873.5553}]);"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"fileName": "02-javascript-algorithms-and-data-structures/intermediate-algorithm-scripting.json",
|
||||
"superBlock": "javascript-algorithms-and-data-structures",
|
||||
"superOrder": 2
|
||||
]
|
||||
}
|
@@ -118,8 +118,8 @@
|
||||
"",
|
||||
"palindrome(\"eye\");"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -279,8 +279,8 @@
|
||||
"",
|
||||
"convertToRoman(36);"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -359,8 +359,8 @@
|
||||
"// Change the inputs below to test",
|
||||
"rot13(\"SERR PBQR PNZC\");"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -538,8 +538,8 @@
|
||||
"",
|
||||
"telephoneCheck(\"555-555-5555\");"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -650,13 +650,10 @@
|
||||
"",
|
||||
"checkCashRegister(19.5, 20, [[\"PENNY\", 1.01], [\"NICKEL\", 2.05], [\"DIME\", 3.1], [\"QUARTER\", 4.25], [\"ONE\", 90], [\"FIVE\", 55], [\"TEN\", 20], [\"TWENTY\", 60], [\"ONE HUNDRED\", 100]]);"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"fileName": "02-javascript-algorithms-and-data-structures/javascript-algorithms-and-data-structures-projects.json",
|
||||
"superBlock": "javascript-algorithms-and-data-structures",
|
||||
"superOrder": 2
|
||||
]
|
||||
}
|
@@ -49,8 +49,8 @@
|
||||
" ",
|
||||
"};"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -96,8 +96,8 @@
|
||||
"",
|
||||
""
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -145,8 +145,8 @@
|
||||
"",
|
||||
"dog.sayLegs();"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -188,7 +188,6 @@
|
||||
"ext": "js",
|
||||
"name": "index",
|
||||
"contents": [
|
||||
"",
|
||||
"let dog = {",
|
||||
" name: \"Spot\",",
|
||||
" numLegs: 4,",
|
||||
@@ -197,8 +196,8 @@
|
||||
"",
|
||||
"dog.sayLegs();"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -242,13 +241,9 @@
|
||||
"key": "indexjs",
|
||||
"ext": "js",
|
||||
"name": "index",
|
||||
"contents": [
|
||||
"",
|
||||
"",
|
||||
""
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"contents": [],
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -299,8 +294,8 @@
|
||||
"",
|
||||
""
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -360,8 +355,8 @@
|
||||
"",
|
||||
""
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -411,8 +406,8 @@
|
||||
"",
|
||||
""
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -465,8 +460,8 @@
|
||||
"",
|
||||
""
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -522,8 +517,8 @@
|
||||
"// Add your code above this line",
|
||||
"let beagle = new Dog(\"Snoopy\");"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -582,8 +577,8 @@
|
||||
"",
|
||||
""
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -638,8 +633,8 @@
|
||||
"}",
|
||||
""
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -697,8 +692,8 @@
|
||||
" ",
|
||||
"};"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -749,8 +744,8 @@
|
||||
" }",
|
||||
"};"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -795,8 +790,8 @@
|
||||
"",
|
||||
""
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -848,8 +843,8 @@
|
||||
"???.isPrototypeOf(Dog.prototype);",
|
||||
""
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -924,8 +919,8 @@
|
||||
" ",
|
||||
"};"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -995,8 +990,8 @@
|
||||
"duck.eat(); // Should print \"nom nom nom\"",
|
||||
"beagle.eat(); // Should print \"nom nom nom\" "
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -1050,8 +1045,8 @@
|
||||
"let beagle = new Dog();",
|
||||
"beagle.eat(); // Should print \"nom nom nom\""
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -1113,8 +1108,8 @@
|
||||
"let duck = new Bird();",
|
||||
"let beagle = new Dog();"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -1187,8 +1182,8 @@
|
||||
"beagle.eat(); // Should print \"nom nom nom\"",
|
||||
"beagle.bark(); // Should print \"Woof!\""
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -1252,8 +1247,8 @@
|
||||
"let penguin = new Penguin();",
|
||||
"console.log(penguin.fly());"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -1318,8 +1313,8 @@
|
||||
"",
|
||||
""
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -1367,8 +1362,8 @@
|
||||
"}",
|
||||
""
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -1412,8 +1407,8 @@
|
||||
"",
|
||||
"makeNest(); "
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -1470,13 +1465,10 @@
|
||||
" };",
|
||||
"};"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"fileName": "02-javascript-algorithms-and-data-structures/object-oriented-programming.json",
|
||||
"superBlock": "javascript-algorithms-and-data-structures",
|
||||
"superOrder": 2
|
||||
]
|
||||
}
|
@@ -41,8 +41,8 @@
|
||||
"let myRegex = /Hello/;",
|
||||
"let result = myRegex; // Change this line"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -88,8 +88,8 @@
|
||||
"let waldoRegex = /search/; // Change this line",
|
||||
"let result = waldoRegex.test(waldoIsHiding);"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -150,8 +150,8 @@
|
||||
"let petRegex = /change/; // Change this line",
|
||||
"let result = petRegex.test(petString);"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -223,8 +223,8 @@
|
||||
"let fccRegex = /change/; // Change this line",
|
||||
"let result = fccRegex.test(myString);"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -268,8 +268,8 @@
|
||||
"let codingRegex = /change/; // Change this line",
|
||||
"let result = extractStr; // Change this line"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -319,8 +319,8 @@
|
||||
"let starRegex = /change/; // Change this line",
|
||||
"let result = twinkleStar; // Change this line"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -392,8 +392,8 @@
|
||||
"let unRegex = /change/; // Change this line",
|
||||
"let result = unRegex.test(exampleStr);"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -447,8 +447,8 @@
|
||||
"let vowelRegex = /change/; // Change this line",
|
||||
"let result = vowelRegex; // Change this line"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -462,7 +462,7 @@
|
||||
"<blockquote>let catStr = \"cat\";<br>let batStr = \"bat\";<br>let matStr = \"mat\";<br>let bgRegex = /[a-e]at/;<br>catStr.match(bgRegex); // Returns [\"cat\"]<br>batStr.match(bgRegex); // Returns [\"bat\"]<br>matStr.match(bgRegex); // Returns null</blockquote>",
|
||||
"<hr>",
|
||||
"Match all the letters in the string <code>quoteSample</code>.",
|
||||
"<strong>Note</strong><br>Be sure to match both upper- and lowercase vowels."
|
||||
"<strong>Note</strong><br>Be sure to match both upper- and lowercase <strong>letters<strong>."
|
||||
],
|
||||
"tests": [
|
||||
{
|
||||
@@ -494,8 +494,8 @@
|
||||
"let alphabetRegex = /change/; // Change this line",
|
||||
"let result = alphabetRegex; // Change this line"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -540,8 +540,8 @@
|
||||
"let myRegex = /change/; // Change this line",
|
||||
"let result = myRegex; // Change this line"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -585,8 +585,8 @@
|
||||
"let myRegex = /change/; // Change this line",
|
||||
"let result = myRegex; // Change this line"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -631,8 +631,8 @@
|
||||
"let myRegex = /change/; // Change this line",
|
||||
"let result = difficultSpelling.match(myRegex);"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -684,8 +684,8 @@
|
||||
"let chewieRegex = /change/; // Change this line",
|
||||
"let result = chewieQuote.match(chewieRegex);"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -722,8 +722,8 @@
|
||||
"let myRegex = /<.*>/; // Change this line",
|
||||
"let result = text.match(myRegex);"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -790,8 +790,8 @@
|
||||
"let matchedCriminals = crowd.match(reCriminals);",
|
||||
"console.log(matchedCriminals);"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -839,8 +839,8 @@
|
||||
"let calRegex = /change/; // Change this line",
|
||||
"let result = calRegex.test(rickyAndCal);"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -884,8 +884,8 @@
|
||||
"let lastRegex = /change/; // Change this line",
|
||||
"let result = lastRegex.test(caboose);"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -938,8 +938,8 @@
|
||||
"let alphabetRegexV2 = /change/; // Change this line",
|
||||
"let result = quoteSample.match(alphabetRegexV2).length;"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -991,8 +991,8 @@
|
||||
"let nonAlphabetRegex = /change/; // Change this line",
|
||||
"let result = quoteSample.match(nonAlphabetRegex).length;"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -1055,8 +1055,8 @@
|
||||
"let numRegex = /change/; // Change this line",
|
||||
"let result = numString.match(numRegex).length;"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -1119,8 +1119,8 @@
|
||||
"let noNumRegex = /change/; // Change this line",
|
||||
"let result = numString.match(noNumRegex).length;"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -1178,8 +1178,8 @@
|
||||
"let userCheck = /change/; // Change this line",
|
||||
"let result = userCheck.test(username);"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -1227,8 +1227,8 @@
|
||||
"let countWhiteSpace = /change/; // Change this line",
|
||||
"let result = sample.match(countWhiteSpace);"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -1276,8 +1276,8 @@
|
||||
"let countNonWhiteSpace = /change/; // Change this line",
|
||||
"let result = sample.match(countNonWhiteSpace);"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -1338,8 +1338,8 @@
|
||||
"let ohRegex = /change/; // Change this line",
|
||||
"let result = ohRegex.test(ohStr);"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -1400,8 +1400,8 @@
|
||||
"let haRegex = /change/; // Change this line",
|
||||
"let result = haRegex.test(haStr);"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -1458,8 +1458,8 @@
|
||||
"let timRegex = /change/; // Change this line",
|
||||
"let result = timRegex.test(timStr);"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -1508,8 +1508,8 @@
|
||||
"let favRegex = /change/; // Change this line",
|
||||
"let result = favRegex.test(favWord);"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -1574,8 +1574,8 @@
|
||||
"let pwRegex = /change/; // Change this line",
|
||||
"let result = pwRegex.test(sampleWord);"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -1650,8 +1650,8 @@
|
||||
"let reRegex = /change/; // Change this line",
|
||||
"let result = reRegex.test(repeatNum);"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -1698,8 +1698,8 @@
|
||||
"let replaceText = \"\"; // Change this line",
|
||||
"let result = huhText.replace(fixRegex, replaceText);"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -1744,13 +1744,10 @@
|
||||
"let wsRegex = /change/; // Change this line",
|
||||
"let result = hello; // Change this line"
|
||||
],
|
||||
"head": "",
|
||||
"tail": ""
|
||||
"head": [],
|
||||
"tail": []
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"fileName": "02-javascript-algorithms-and-data-structures/regular-expressions.json",
|
||||
"superBlock": "javascript-algorithms-and-data-structures",
|
||||
"superOrder": 2
|
||||
]
|
||||
}
|
Reference in New Issue
Block a user