fix(curriculum): added extra line before </section> tag - Engl… (#36278)

This commit is contained in:
Randell Dawson
2019-07-18 08:24:12 -07:00
committed by mrugesh
parent b038af4925
commit c387873640
927 changed files with 928 additions and 0 deletions

View File

@ -82,4 +82,5 @@ console.log(myArray);
let myArray = ["a", "b", "c", "d"];
myArray[1] = "e";
```
</section>

View File

@ -90,4 +90,5 @@ function checkInventory(scannedItem) {
return foods[scannedItem];
}
```
</section>

View File

@ -79,4 +79,5 @@ function htmlColorNames(arr) {
return arr;
}
```
</section>

View File

@ -100,4 +100,5 @@ foods['grapes'] = 35;
foods['strawberries'] = 27;
// change code above this line
```
</section>

View File

@ -76,4 +76,5 @@ function quickCheck(arr, elem) {
// change code above this line
}
```
</section>

View File

@ -116,4 +116,5 @@ function isEveryoneHere(obj) {
console.log(isEveryoneHere(users));
```
</section>

View File

@ -93,4 +93,5 @@ function copyMachine(arr,num){
}
console.log(copyMachine([true, false, true], 2));
```
</section>

View File

@ -68,4 +68,5 @@ function forecast(arr) {
return arr.slice(2,4);
}
```
</section>

View File

@ -109,4 +109,5 @@ let myNestedArray = [
// change code above this line
];
```
</section>

View File

@ -97,4 +97,5 @@ function getArrayOfUsers(obj) {
console.log(getArrayOfUsers(users));
```
</section>

View File

@ -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>

View File

@ -100,4 +100,5 @@ function addFriend(userObj, friend) {
return userObj.data.friends;
}
```
</section>

View File

@ -92,4 +92,5 @@ let userActivity = {
userActivity.data.online = 45;
```
</section>

View File

@ -79,4 +79,5 @@ function sumOfTen(arr) {
return arr.reduce((a, b) => a + b);
}
```
</section>

View File

@ -90,4 +90,5 @@ let yourArray; // change this line
```js
let yourArray = ['a string', 100, true, ['one', 2], 'another string'];
```
</section>

View File

@ -60,4 +60,5 @@ var quotient = 0.0 / 2.0; // Fix this line
```js
var quotient = 4.4 / 2.0;
```
</section>

View File

@ -94,4 +94,5 @@ function checkSign(num) {
return (num > 0) ? 'positive' : (num < 0) ? 'negative' : 'zero';
}
```
</section>

View File

@ -82,4 +82,5 @@ function checkEqual(a, b) {
return a === b ? "Equal" : "Not Equal";
}
```
</section>

View File

@ -67,4 +67,5 @@ function convertToInteger(str) {
return parseInt(str, 2);
}
```
</section>

View File

@ -64,4 +64,5 @@ function convertToInteger(str) {
return parseInt(str);
}
```
</section>

View File

@ -63,4 +63,5 @@ let exp = 3;
let power = raiseToPower(base, exp);
console.log(power);
```
</section>

View File

@ -73,4 +73,5 @@ function getNine() {
let result = getNine();
console.log(result);
```
</section>

View File

@ -62,4 +62,5 @@ let payables = 8;
let netWorkingCapital = receivables - payables;
console.log(`Net working capital is: ${netWorkingCapital}`);
```
</section>

View File

@ -69,4 +69,5 @@ console.log(innerHtml);
let innerHtml = "<p>Click here to <a href=\"#Home\">return home</a></p>";
console.log(innerHtml);
```
</section>

View File

@ -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>

View File

@ -88,4 +88,5 @@ function zeroArray(m, n) {
let matrix = zeroArray(3, 2);
console.log(matrix);
```
</section>

View File

@ -115,4 +115,5 @@ function makeList(arr) {
**/
const resultDisplayArray = makeList(result.failure);
```
</section>

View File

@ -90,4 +90,5 @@ function printManyTimes(str) {
}
printManyTimes("freeCodeCamp");
```
</section>

View File

@ -85,4 +85,5 @@ function editInPlace() {
}
editInPlace();
```
</section>

View File

@ -99,4 +99,5 @@ function freezeObj() {
}
const PI = freezeObj();
```
</section>

View File

@ -65,4 +65,5 @@ console.log(increment(5)); // returns 6
```js
const increment = (number, value = 1) => number + value;
```
</section>

View File

@ -89,4 +89,5 @@ class Vegetable {
}
const carrot = new Vegetable('carrot');
```
</section>

View File

@ -73,4 +73,5 @@ console.log(b); // should be 8
let a = 8, b = 6;
[a, b] = [b, a];
```
</section>

View File

@ -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>

View File

@ -89,4 +89,5 @@ const { today: highToday, tomorrow: highTomorrow } = HIGH_TEMPERATURES;
console.log(highToday); // should be 77
console.log(highTomorrow); // should be 80
```
</section>

View File

@ -95,4 +95,5 @@ const stats = {
const half = ( {max, min} ) => (max + min) / 2.0;
```
</section>

View File

@ -79,4 +79,5 @@ function removeFirstTwo(list) {
}
const arr = removeFirstTwo(source);
```
</section>

View File

@ -108,4 +108,5 @@ let temp = thermos.temperature; // 24.44 in C
thermos.temperature = 26;
temp = thermos.temperature; // 26 in C
```
</section>

View File

@ -72,4 +72,5 @@ const sum = (...args) => {
return args.reduce((a, b) => a + b, 0);
}
```
</section>

View File

@ -85,4 +85,5 @@ const myConcat = (arr1, arr2) => {
// test your code
console.log(myConcat([1, 2], [3, 4, 5]));
```
</section>

View File

@ -78,4 +78,5 @@ var first = [1, 2, 3];
var second = [4, 5];
nonMutatingPush(first, second);
```
</section>

View File

@ -82,4 +82,5 @@ function urlSlug(title) {
var winterComing = urlSlug(globalTitle); // Should be "winter-is-coming"
```
</section>

View File

@ -71,4 +71,5 @@ function incrementer() {
var newValue = incrementer(); // Should equal 5
```
</section>

View File

@ -75,4 +75,5 @@ function sentensify(str) {
// Add your code above this line
}
```
</section>

View File

@ -74,4 +74,5 @@ var first = [1, 2, 3];
var second = [4, 5];
nonMutatingConcat(first, second);
```
</section>

View File

@ -82,4 +82,5 @@ var new_s = s.myMap(function(item){
return item * 2;
});
```
</section>

View File

@ -80,4 +80,5 @@ var new_s = s.myFilter(function(item){
return item % 2 === 1;
});
```
</section>

View File

@ -100,4 +100,5 @@ add(10)(20)(30);
```js
const add = x => y => z => x + y + z
```
</section>

View File

@ -97,4 +97,5 @@ const getTea = (numOfCups) => {
const tea4TeamFCC = getTea(40);
```
</section>

View File

@ -74,4 +74,5 @@ const incrementer = val => val + 1;
var newValue = incrementer(fixedValue); // Should equal 5
console.log(fixedValue); // Should print 4
```
</section>

View File

@ -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>

View File

@ -75,4 +75,5 @@ function nonMutatingSplice(cities) {
var inputCities = ["Chicago", "Delhi", "Islamabad", "London", "Berlin"];
nonMutatingSplice(inputCities);
```
</section>

View File

@ -66,4 +66,5 @@ function nonMutatingSort(arr) {
}
nonMutatingSort(globalArray);
```
</section>

View File

@ -76,4 +76,5 @@ function sliceArray(anim, beginSlice, endSlice) {
var inputAnim = ["Cat", "Dog", "Tiger", "Zebra", "Ant"];
sliceArray(inputAnim, 1, 3);
```
</section>

View File

@ -89,4 +89,5 @@ function alphabeticalOrder(arr) {
}
alphabeticalOrder(["a", "d", "c", "a", "z", "g"]);
```
</section>

View File

@ -76,4 +76,5 @@ function splitify(str) {
// Add your code above this line
}
```
</section>

View File

@ -114,4 +114,5 @@ const getTea = (prepareTea, numOfCups) => {
const tea4BlackTeamFCC = getTea(prepareBlackTea, 13);
const tea4GreenTeamFCC = getTea(prepareGreenTea, 27);
```
</section>

View File

@ -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>

View File

@ -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>

View File

@ -68,4 +68,5 @@ let favWord = "favorite";
let favRegex = /favou?r/;
let result = favRegex.test(favWord);
```
</section>

View File

@ -70,4 +70,5 @@ let myString = "Eleanor Roosevelt";
let myRegex = /(Franklin|Eleanor).*Roosevelt/;
let result = myRegex.test(myString);
```
</section>

View File

@ -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>

View File

@ -55,4 +55,5 @@ let text = "<h1>Winter is coming</h1>";
let myRegex = /<.*?>/; // Change this line
let result = text.match(myRegex);
```
</section>

View File

@ -74,4 +74,5 @@ let twinkleStar = "Twinkle, twinkle, little star";
let starRegex = /twinkle/gi;
let result = twinkleStar.match(starRegex);
```
</section>

View File

@ -90,4 +90,5 @@ let reCriminals = /C+/; // Change this line
let matchedCriminals = crowd.match(reCriminals);
```
</section>

View File

@ -71,4 +71,5 @@ let myString = "freeCodeCamp";
let fccRegex = /freecodecamp/i; // Change this line
let result = fccRegex.test(myString);
```
</section>

View File

@ -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>

View File

@ -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>

View File

@ -66,4 +66,5 @@ let movieName = "2001: A Space Odyssey";
let noNumRegex = /\D/g; // Change this line
let result = movieName.match(noNumRegex).length;
```
</section>

View File

@ -67,4 +67,5 @@ let numRegex = /\d/g; // Change this line
let result = movieName.match(numRegex).length;
```
</section>

View File

@ -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>

View File

@ -69,4 +69,5 @@ let rickyAndCal = "Cal and Ricky both like racing.";
let calRegex = /^Cal/; // Change this line
let result = calRegex.test(rickyAndCal);
```
</section>

View File

@ -58,4 +58,5 @@ let difficultSpelling = "Mississippi";
let myRegex = /s+/g; // Change this line
let result = difficultSpelling.match(myRegex);
```
</section>

View File

@ -78,4 +78,5 @@ const chewieQuote = "Aaaaaaaaaaaaaaaarrrgh!";
let chewieRegex = /Aa*/;
let result = chewieQuote.match(chewieRegex);
```
</section>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -66,4 +66,5 @@ let myRegex = /[h-s2-6]/gi; // Change this line
let result = quoteSample.match(myRegex); // Change this line
```
</section>

View File

@ -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>

View File

@ -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