fix(curriculum): added extra line before </section> tag - Engl… (#36278)
This commit is contained in:
@ -82,4 +82,5 @@ console.log(myArray);
|
||||
let myArray = ["a", "b", "c", "d"];
|
||||
myArray[1] = "e";
|
||||
```
|
||||
|
||||
</section>
|
||||
|
@ -90,4 +90,5 @@ function checkInventory(scannedItem) {
|
||||
return foods[scannedItem];
|
||||
}
|
||||
```
|
||||
|
||||
</section>
|
||||
|
@ -78,4 +78,5 @@ function mixedNumbers(arr) {
|
||||
return arr;
|
||||
}
|
||||
```
|
||||
|
||||
</section>
|
||||
|
@ -79,4 +79,5 @@ function htmlColorNames(arr) {
|
||||
return arr;
|
||||
}
|
||||
```
|
||||
|
||||
</section>
|
||||
|
@ -100,4 +100,5 @@ foods['grapes'] = 35;
|
||||
foods['strawberries'] = 27;
|
||||
// change code above this line
|
||||
```
|
||||
|
||||
</section>
|
||||
|
@ -76,4 +76,5 @@ function quickCheck(arr, elem) {
|
||||
// change code above this line
|
||||
}
|
||||
```
|
||||
|
||||
</section>
|
||||
|
@ -116,4 +116,5 @@ function isEveryoneHere(obj) {
|
||||
|
||||
console.log(isEveryoneHere(users));
|
||||
```
|
||||
|
||||
</section>
|
||||
|
@ -72,4 +72,5 @@ function spreadOut() {
|
||||
}
|
||||
|
||||
```
|
||||
|
||||
</section>
|
||||
|
@ -93,4 +93,5 @@ function copyMachine(arr,num){
|
||||
}
|
||||
console.log(copyMachine([true, false, true], 2));
|
||||
```
|
||||
|
||||
</section>
|
||||
|
@ -68,4 +68,5 @@ function forecast(arr) {
|
||||
return arr.slice(2,4);
|
||||
}
|
||||
```
|
||||
|
||||
</section>
|
||||
|
@ -109,4 +109,5 @@ let myNestedArray = [
|
||||
// change code above this line
|
||||
];
|
||||
```
|
||||
|
||||
</section>
|
||||
|
@ -97,4 +97,5 @@ function getArrayOfUsers(obj) {
|
||||
|
||||
console.log(getArrayOfUsers(users));
|
||||
```
|
||||
|
||||
</section>
|
||||
|
@ -92,4 +92,5 @@ function filteredArray(arr, elem) {
|
||||
return newArr;
|
||||
}
|
||||
```
|
||||
|
||||
</section>
|
||||
|
@ -41,6 +41,7 @@ We've defined a function <code>countOnline</code> which accepts one argument (a
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
</section>
|
||||
|
||||
## Tests
|
||||
@ -138,4 +139,5 @@ function countOnline(usersObj) {
|
||||
}
|
||||
|
||||
```
|
||||
|
||||
</section>
|
||||
|
@ -100,4 +100,5 @@ function addFriend(userObj, friend) {
|
||||
return userObj.data.friends;
|
||||
}
|
||||
```
|
||||
|
||||
</section>
|
||||
|
@ -92,4 +92,5 @@ let userActivity = {
|
||||
|
||||
userActivity.data.online = 45;
|
||||
```
|
||||
|
||||
</section>
|
||||
|
@ -82,4 +82,5 @@ function popShift(arr) {
|
||||
return [shifted, popped];
|
||||
}
|
||||
```
|
||||
|
||||
</section>
|
||||
|
@ -79,4 +79,5 @@ function sumOfTen(arr) {
|
||||
return arr.reduce((a, b) => a + b);
|
||||
}
|
||||
```
|
||||
|
||||
</section>
|
||||
|
@ -90,4 +90,5 @@ let yourArray; // change this line
|
||||
```js
|
||||
let yourArray = ['a string', 100, true, ['one', 2], 'another string'];
|
||||
```
|
||||
|
||||
</section>
|
||||
|
@ -83,4 +83,5 @@ delete foods.strawberries;
|
||||
|
||||
console.log(foods);
|
||||
```
|
||||
|
||||
</section>
|
||||
|
@ -60,4 +60,5 @@ var quotient = 0.0 / 2.0; // Fix this line
|
||||
```js
|
||||
var quotient = 4.4 / 2.0;
|
||||
```
|
||||
|
||||
</section>
|
||||
|
@ -94,4 +94,5 @@ function checkSign(num) {
|
||||
return (num > 0) ? 'positive' : (num < 0) ? 'negative' : 'zero';
|
||||
}
|
||||
```
|
||||
|
||||
</section>
|
||||
|
@ -82,4 +82,5 @@ function checkEqual(a, b) {
|
||||
return a === b ? "Equal" : "Not Equal";
|
||||
}
|
||||
```
|
||||
|
||||
</section>
|
||||
|
@ -67,4 +67,5 @@ function convertToInteger(str) {
|
||||
return parseInt(str, 2);
|
||||
}
|
||||
```
|
||||
|
||||
</section>
|
||||
|
@ -64,4 +64,5 @@ function convertToInteger(str) {
|
||||
return parseInt(str);
|
||||
}
|
||||
```
|
||||
|
||||
</section>
|
||||
|
@ -63,4 +63,5 @@ let exp = 3;
|
||||
let power = raiseToPower(base, exp);
|
||||
console.log(power);
|
||||
```
|
||||
|
||||
</section>
|
||||
|
@ -73,4 +73,5 @@ function getNine() {
|
||||
let result = getNine();
|
||||
console.log(result);
|
||||
```
|
||||
|
||||
</section>
|
||||
|
@ -62,4 +62,5 @@ let payables = 8;
|
||||
let netWorkingCapital = receivables - payables;
|
||||
console.log(`Net working capital is: ${netWorkingCapital}`);
|
||||
```
|
||||
|
||||
</section>
|
||||
|
@ -69,4 +69,5 @@ console.log(innerHtml);
|
||||
let innerHtml = "<p>Click here to <a href=\"#Home\">return home</a></p>";
|
||||
console.log(innerHtml);
|
||||
```
|
||||
|
||||
</section>
|
||||
|
@ -92,4 +92,5 @@ function countToFive() {
|
||||
|
||||
countToFive();
|
||||
```
|
||||
|
||||
</section>
|
||||
|
@ -54,4 +54,5 @@ let myArray = [1, 2, 3];
|
||||
let arraySum = myArray.reduce((previous, current) => previous + current);
|
||||
console.log(`Sum of array values is: ${arraySum}`);
|
||||
```
|
||||
|
||||
</section>
|
||||
|
@ -83,4 +83,5 @@ if(x === y) {
|
||||
|
||||
console.log(result);
|
||||
```
|
||||
|
||||
</section>
|
||||
|
@ -68,4 +68,5 @@ function myFunc() {
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
</section>
|
||||
|
@ -88,4 +88,5 @@ function zeroArray(m, n) {
|
||||
let matrix = zeroArray(3, 2);
|
||||
console.log(matrix);
|
||||
```
|
||||
|
||||
</section>
|
||||
|
@ -133,4 +133,5 @@ function checkScope() {
|
||||
return i;
|
||||
}
|
||||
```
|
||||
|
||||
</section>
|
||||
|
@ -115,4 +115,5 @@ function makeList(arr) {
|
||||
**/
|
||||
const resultDisplayArray = makeList(result.failure);
|
||||
```
|
||||
|
||||
</section>
|
||||
|
@ -90,4 +90,5 @@ function printManyTimes(str) {
|
||||
}
|
||||
printManyTimes("freeCodeCamp");
|
||||
```
|
||||
|
||||
</section>
|
||||
|
@ -96,4 +96,5 @@ function catTalk() {
|
||||
}
|
||||
catTalk();
|
||||
```
|
||||
|
||||
</section>
|
||||
|
@ -85,4 +85,5 @@ function editInPlace() {
|
||||
}
|
||||
editInPlace();
|
||||
```
|
||||
|
||||
</section>
|
||||
|
@ -99,4 +99,5 @@ function freezeObj() {
|
||||
}
|
||||
const PI = freezeObj();
|
||||
```
|
||||
|
||||
</section>
|
||||
|
@ -65,4 +65,5 @@ console.log(increment(5)); // returns 6
|
||||
```js
|
||||
const increment = (number, value = 1) => number + value;
|
||||
```
|
||||
|
||||
</section>
|
||||
|
@ -86,4 +86,5 @@ const magic = () => {
|
||||
return new Date();
|
||||
};
|
||||
```
|
||||
|
||||
</section>
|
||||
|
@ -89,4 +89,5 @@ class Vegetable {
|
||||
}
|
||||
const carrot = new Vegetable('carrot');
|
||||
```
|
||||
|
||||
</section>
|
||||
|
@ -73,4 +73,5 @@ console.log(b); // should be 8
|
||||
let a = 8, b = 6;
|
||||
[a, b] = [b, a];
|
||||
```
|
||||
|
||||
</section>
|
||||
|
@ -97,4 +97,5 @@ const { today: { low: lowToday, high: highToday }} = LOCAL_FORECAST;
|
||||
console.log(highToday); // should be 77
|
||||
console.log(highTomorrow); // should be 80
|
||||
```
|
||||
|
||||
</section>
|
||||
|
@ -89,4 +89,5 @@ const { today: highToday, tomorrow: highTomorrow } = HIGH_TEMPERATURES;
|
||||
console.log(highToday); // should be 77
|
||||
console.log(highTomorrow); // should be 80
|
||||
```
|
||||
|
||||
</section>
|
||||
|
@ -95,4 +95,5 @@ const stats = {
|
||||
|
||||
const half = ( {max, min} ) => (max + min) / 2.0;
|
||||
```
|
||||
|
||||
</section>
|
||||
|
@ -79,4 +79,5 @@ function removeFirstTwo(list) {
|
||||
}
|
||||
const arr = removeFirstTwo(source);
|
||||
```
|
||||
|
||||
</section>
|
||||
|
@ -108,4 +108,5 @@ let temp = thermos.temperature; // 24.44 in C
|
||||
thermos.temperature = 26;
|
||||
temp = thermos.temperature; // 26 in C
|
||||
```
|
||||
|
||||
</section>
|
||||
|
@ -72,4 +72,5 @@ const sum = (...args) => {
|
||||
return args.reduce((a, b) => a + b, 0);
|
||||
}
|
||||
```
|
||||
|
||||
</section>
|
||||
|
@ -81,4 +81,5 @@ let arr2;
|
||||
|
||||
arr2 = [...arr1];
|
||||
```
|
||||
|
||||
</section>
|
||||
|
@ -85,4 +85,5 @@ const myConcat = (arr1, arr2) => {
|
||||
// test your code
|
||||
console.log(myConcat([1, 2], [3, 4, 5]));
|
||||
```
|
||||
|
||||
</section>
|
||||
|
@ -83,4 +83,5 @@ const createPerson = (name, age, gender) => {
|
||||
};
|
||||
};
|
||||
```
|
||||
|
||||
</section>
|
||||
|
@ -78,4 +78,5 @@ var first = [1, 2, 3];
|
||||
var second = [4, 5];
|
||||
nonMutatingPush(first, second);
|
||||
```
|
||||
|
||||
</section>
|
||||
|
@ -82,4 +82,5 @@ function urlSlug(title) {
|
||||
|
||||
var winterComing = urlSlug(globalTitle); // Should be "winter-is-coming"
|
||||
```
|
||||
|
||||
</section>
|
||||
|
@ -71,4 +71,5 @@ function incrementer() {
|
||||
|
||||
var newValue = incrementer(); // Should equal 5
|
||||
```
|
||||
|
||||
</section>
|
||||
|
@ -75,4 +75,5 @@ function sentensify(str) {
|
||||
// Add your code above this line
|
||||
}
|
||||
```
|
||||
|
||||
</section>
|
||||
|
@ -74,4 +74,5 @@ var first = [1, 2, 3];
|
||||
var second = [4, 5];
|
||||
nonMutatingConcat(first, second);
|
||||
```
|
||||
|
||||
</section>
|
||||
|
@ -82,4 +82,5 @@ var new_s = s.myMap(function(item){
|
||||
return item * 2;
|
||||
});
|
||||
```
|
||||
|
||||
</section>
|
||||
|
@ -80,4 +80,5 @@ var new_s = s.myFilter(function(item){
|
||||
return item % 2 === 1;
|
||||
});
|
||||
```
|
||||
|
||||
</section>
|
||||
|
@ -100,4 +100,5 @@ add(10)(20)(30);
|
||||
```js
|
||||
const add = x => y => z => x + y + z
|
||||
```
|
||||
|
||||
</section>
|
||||
|
@ -97,4 +97,5 @@ const getTea = (numOfCups) => {
|
||||
|
||||
const tea4TeamFCC = getTea(40);
|
||||
```
|
||||
|
||||
</section>
|
||||
|
@ -74,4 +74,5 @@ const incrementer = val => val + 1;
|
||||
var newValue = incrementer(fixedValue); // Should equal 5
|
||||
console.log(fixedValue); // Should print 4
|
||||
```
|
||||
|
||||
</section>
|
||||
|
@ -118,4 +118,5 @@ var newBookList = add(bookList, 'A Brief History of Time');
|
||||
var newerBookList = remove(bookList, 'On The Electrodynamics of Moving Bodies');
|
||||
var newestBookList = remove(add(bookList, 'A Brief History of Time'), 'On The Electrodynamics of Moving Bodies');
|
||||
```
|
||||
|
||||
</section>
|
||||
|
@ -75,4 +75,5 @@ function nonMutatingSplice(cities) {
|
||||
var inputCities = ["Chicago", "Delhi", "Islamabad", "London", "Berlin"];
|
||||
nonMutatingSplice(inputCities);
|
||||
```
|
||||
|
||||
</section>
|
||||
|
@ -66,4 +66,5 @@ function nonMutatingSort(arr) {
|
||||
}
|
||||
nonMutatingSort(globalArray);
|
||||
```
|
||||
|
||||
</section>
|
||||
|
@ -76,4 +76,5 @@ function sliceArray(anim, beginSlice, endSlice) {
|
||||
var inputAnim = ["Cat", "Dog", "Tiger", "Zebra", "Ant"];
|
||||
sliceArray(inputAnim, 1, 3);
|
||||
```
|
||||
|
||||
</section>
|
||||
|
@ -89,4 +89,5 @@ function alphabeticalOrder(arr) {
|
||||
}
|
||||
alphabeticalOrder(["a", "d", "c", "a", "z", "g"]);
|
||||
```
|
||||
|
||||
</section>
|
||||
|
@ -76,4 +76,5 @@ function splitify(str) {
|
||||
// Add your code above this line
|
||||
}
|
||||
```
|
||||
|
||||
</section>
|
||||
|
@ -114,4 +114,5 @@ const getTea = (prepareTea, numOfCups) => {
|
||||
const tea4BlackTeamFCC = getTea(prepareBlackTea, 13);
|
||||
const tea4GreenTeamFCC = getTea(prepareGreenTea, 27);
|
||||
```
|
||||
|
||||
</section>
|
||||
|
@ -136,4 +136,5 @@ var finalTabs = socialWindow
|
||||
.join(videoWindow.tabClose(2)) // Close third tab in video window, and join
|
||||
.join(workWindow.tabClose(1).tabOpen());
|
||||
```
|
||||
|
||||
</section>
|
||||
|
@ -79,4 +79,5 @@ const squareList = (arr) => {
|
||||
return squaredIntegers;
|
||||
};
|
||||
```
|
||||
|
||||
</section>
|
||||
|
@ -74,4 +74,5 @@ function checkPositive(arr) {
|
||||
}
|
||||
checkPositive([1, 2, 3, -4, 5]);
|
||||
```
|
||||
|
||||
</section>
|
||||
|
@ -289,4 +289,5 @@ var watchList = [
|
||||
let filteredList = watchList.filter(e => e.imdbRating >= 8).map( ({Title: title, imdbRating: rating}) => ({title, rating}) );
|
||||
// Add your code above this line
|
||||
```
|
||||
|
||||
</section>
|
||||
|
@ -306,4 +306,5 @@ var rating = watchList.map(function(movie) {
|
||||
}
|
||||
});
|
||||
```
|
||||
|
||||
</section>
|
||||
|
@ -302,4 +302,5 @@ function getRating(watchList){
|
||||
}
|
||||
|
||||
```
|
||||
|
||||
</section>
|
||||
|
@ -74,4 +74,5 @@ function checkPositive(arr) {
|
||||
}
|
||||
checkPositive([1, 2, 3, -4, 5]);
|
||||
```
|
||||
|
||||
</section>
|
||||
|
@ -68,4 +68,5 @@ let favWord = "favorite";
|
||||
let favRegex = /favou?r/;
|
||||
let result = favRegex.test(favWord);
|
||||
```
|
||||
|
||||
</section>
|
||||
|
@ -70,4 +70,5 @@ let myString = "Eleanor Roosevelt";
|
||||
let myRegex = /(Franklin|Eleanor).*Roosevelt/;
|
||||
let result = myRegex.test(myString);
|
||||
```
|
||||
|
||||
</section>
|
||||
|
@ -66,4 +66,5 @@ let extractStr = "Extract the word 'coding' from this string.";
|
||||
let codingRegex = /coding/; // Change this line
|
||||
let result = extractStr.match(codingRegex); // Change this line
|
||||
```
|
||||
|
||||
</section>
|
||||
|
@ -55,4 +55,5 @@ let text = "<h1>Winter is coming</h1>";
|
||||
let myRegex = /<.*?>/; // Change this line
|
||||
let result = text.match(myRegex);
|
||||
```
|
||||
|
||||
</section>
|
||||
|
@ -74,4 +74,5 @@ let twinkleStar = "Twinkle, twinkle, little star";
|
||||
let starRegex = /twinkle/gi;
|
||||
let result = twinkleStar.match(starRegex);
|
||||
```
|
||||
|
||||
</section>
|
||||
|
@ -90,4 +90,5 @@ let reCriminals = /C+/; // Change this line
|
||||
let matchedCriminals = crowd.match(reCriminals);
|
||||
|
||||
```
|
||||
|
||||
</section>
|
||||
|
@ -71,4 +71,5 @@ let myString = "freeCodeCamp";
|
||||
let fccRegex = /freecodecamp/i; // Change this line
|
||||
let result = fccRegex.test(myString);
|
||||
```
|
||||
|
||||
</section>
|
||||
|
@ -66,4 +66,5 @@ let petString = "James has a pet cat.";
|
||||
let petRegex = /dog|cat|bird|fish/; // Change this line
|
||||
let result = petRegex.test(petString);
|
||||
```
|
||||
|
||||
</section>
|
||||
|
@ -75,4 +75,5 @@ let quoteSample = "The five boxing wizards jump quickly.";
|
||||
let alphabetRegexV2 = /\w/g; // Change this line
|
||||
let result = quoteSample.match(alphabetRegexV2).length;
|
||||
```
|
||||
|
||||
</section>
|
||||
|
@ -66,4 +66,5 @@ let movieName = "2001: A Space Odyssey";
|
||||
let noNumRegex = /\D/g; // Change this line
|
||||
let result = movieName.match(noNumRegex).length;
|
||||
```
|
||||
|
||||
</section>
|
||||
|
@ -67,4 +67,5 @@ let numRegex = /\d/g; // Change this line
|
||||
let result = movieName.match(numRegex).length;
|
||||
|
||||
```
|
||||
|
||||
</section>
|
||||
|
@ -79,4 +79,5 @@ let exampleStr = "Let's have fun with regular expressions!";
|
||||
let unRegex = /.un/; // Change this line
|
||||
let result = unRegex.test(exampleStr);
|
||||
```
|
||||
|
||||
</section>
|
||||
|
@ -69,4 +69,5 @@ let rickyAndCal = "Cal and Ricky both like racing.";
|
||||
let calRegex = /^Cal/; // Change this line
|
||||
let result = calRegex.test(rickyAndCal);
|
||||
```
|
||||
|
||||
</section>
|
||||
|
@ -58,4 +58,5 @@ let difficultSpelling = "Mississippi";
|
||||
let myRegex = /s+/g; // Change this line
|
||||
let result = difficultSpelling.match(myRegex);
|
||||
```
|
||||
|
||||
</section>
|
||||
|
@ -78,4 +78,5 @@ const chewieQuote = "Aaaaaaaaaaaaaaaarrrgh!";
|
||||
let chewieRegex = /Aa*/;
|
||||
let result = chewieQuote.match(chewieRegex);
|
||||
```
|
||||
|
||||
</section>
|
||||
|
@ -68,4 +68,5 @@ let caboose = "The last car on a train is the caboose";
|
||||
let lastRegex = /caboose$/; // Change this line
|
||||
let result = lastRegex.test(caboose);
|
||||
```
|
||||
|
||||
</section>
|
||||
|
@ -71,4 +71,5 @@ let quoteSample = "The five boxing wizards_jump quickly.";
|
||||
let nonAlphabetRegex = /\W/g; // Change this line
|
||||
let result = quoteSample.match(nonAlphabetRegex).length;
|
||||
```
|
||||
|
||||
</section>
|
||||
|
@ -69,4 +69,5 @@ let quoteSample = "The quick brown fox jumps over the lazy dog.";
|
||||
let alphabetRegex = /[a-z]/gi; // Change this line
|
||||
let result = quoteSample.match(alphabetRegex); // Change this line
|
||||
```
|
||||
|
||||
</section>
|
||||
|
@ -72,4 +72,5 @@ let waldoIsHiding = "Somewhere Waldo is hiding in this text.";
|
||||
let waldoRegex = /Waldo/; // Change this line
|
||||
let result = waldoRegex.test(waldoIsHiding);
|
||||
```
|
||||
|
||||
</section>
|
||||
|
@ -67,4 +67,5 @@ let sample = "Whitespace is important in separating words";
|
||||
let countNonWhiteSpace = /\S/g; // Change this line
|
||||
let result = sample.match(countNonWhiteSpace);
|
||||
```
|
||||
|
||||
</section>
|
||||
|
@ -66,4 +66,5 @@ let myRegex = /[h-s2-6]/gi; // Change this line
|
||||
let result = quoteSample.match(myRegex); // Change this line
|
||||
|
||||
```
|
||||
|
||||
</section>
|
||||
|
@ -75,4 +75,5 @@ let quoteSample = "Beware of bugs in the above code; I have only proved it corre
|
||||
let vowelRegex = /[aeiou]/gi; // Change this line
|
||||
let result = quoteSample.match(vowelRegex); // Change this line
|
||||
```
|
||||
|
||||
</section>
|
||||
|
@ -57,4 +57,5 @@ let quoteSample = "3 blind mice.";
|
||||
let myRegex = /[^0-9aeiou]/gi; // Change this line
|
||||
let result = quoteSample.match(myRegex); // Change this line
|
||||
```
|
||||
|
||||
</section>
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user