fix(curriculum): Consolidated comments for JavaScript Algorithms and Data Structures challenges - part 1 of 4 (#38258)
* fix: consolidate/remove comments * fix: remove => from comment * fix: reverted changes to add same changes to another PR * fix: removed 'the' from sentence Co-Authored-By: Oliver Eyton-Williams <ojeytonwilliams@gmail.com> * fix: removed 'the' from the sentence Co-Authored-By: Oliver Eyton-Williams <ojeytonwilliams@gmail.com> Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
This commit is contained in:
@@ -79,8 +79,8 @@ var testObj = {
|
||||
|
||||
// Only change code below this line
|
||||
|
||||
var playerNumber; // Change this Line
|
||||
var player = testObj; // Change this Line
|
||||
var playerNumber; // Change this line
|
||||
var player = testObj; // Change this line
|
||||
```
|
||||
|
||||
</div>
|
||||
|
@@ -75,7 +75,6 @@ function switchOfStuff(val) {
|
||||
return answer;
|
||||
}
|
||||
|
||||
// Change this value to test
|
||||
switchOfStuff(1);
|
||||
|
||||
```
|
||||
|
@@ -81,7 +81,6 @@ function testSize(num) {
|
||||
// Only change code above this line
|
||||
}
|
||||
|
||||
// Change this value to test
|
||||
testSize(7);
|
||||
```
|
||||
|
||||
|
@@ -69,7 +69,6 @@ function testEqual(val) {
|
||||
return "Not Equal";
|
||||
}
|
||||
|
||||
// Change this value to test
|
||||
testEqual(10);
|
||||
```
|
||||
|
||||
|
@@ -70,7 +70,6 @@ function testGreaterOrEqual(val) {
|
||||
return "Less than 10";
|
||||
}
|
||||
|
||||
// Change this value to test
|
||||
testGreaterOrEqual(10);
|
||||
```
|
||||
|
||||
|
@@ -62,7 +62,6 @@ function testNotEqual(val) {
|
||||
return "Equal";
|
||||
}
|
||||
|
||||
// Change this value to test
|
||||
testNotEqual(10);
|
||||
```
|
||||
|
||||
|
@@ -68,7 +68,6 @@ function testLessThan(val) {
|
||||
return "55 or Over";
|
||||
}
|
||||
|
||||
// Change this value to test
|
||||
testLessThan(10);
|
||||
```
|
||||
|
||||
|
@@ -70,7 +70,6 @@ function testLessOrEqual(val) {
|
||||
return "More Than 24";
|
||||
}
|
||||
|
||||
// Change this value to test
|
||||
testLessOrEqual(10);
|
||||
|
||||
```
|
||||
|
@@ -57,7 +57,6 @@ function testStrict(val) {
|
||||
return "Not Equal";
|
||||
}
|
||||
|
||||
// Change this value to test
|
||||
testStrict(10);
|
||||
```
|
||||
|
||||
|
@@ -58,7 +58,6 @@ function testStrictNotEqual(val) {
|
||||
return "Equal";
|
||||
}
|
||||
|
||||
// Change this value to test
|
||||
testStrictNotEqual(10);
|
||||
```
|
||||
|
||||
|
@@ -85,7 +85,6 @@ function testLogicalAnd(val) {
|
||||
return "No";
|
||||
}
|
||||
|
||||
// Change this value to test
|
||||
testLogicalAnd(10);
|
||||
```
|
||||
|
||||
|
@@ -89,7 +89,6 @@ function testLogicalOr(val) {
|
||||
return "Inside";
|
||||
}
|
||||
|
||||
// Change this value to test
|
||||
testLogicalOr(15);
|
||||
```
|
||||
|
||||
|
@@ -61,8 +61,6 @@ function cc(card) {
|
||||
// Only change code above this line
|
||||
}
|
||||
|
||||
// Add/remove calls to test your function.
|
||||
// Note: Only the last will display
|
||||
cc(2); cc(3); cc(7); cc('K'); cc('A');
|
||||
```
|
||||
|
||||
|
@@ -59,7 +59,6 @@ function randomRange(myMin, myMax) {
|
||||
|
||||
}
|
||||
|
||||
// Change these values to test your function
|
||||
var myRandom = randomRange(5, 15);
|
||||
```
|
||||
|
||||
|
@@ -66,7 +66,6 @@ function golfScore(par, strokes) {
|
||||
// Only change code above this line
|
||||
}
|
||||
|
||||
// Change these values to test
|
||||
golfScore(5, 4);
|
||||
```
|
||||
|
||||
|
@@ -71,7 +71,6 @@ function testElseIf(val) {
|
||||
return "Between 5 and 10";
|
||||
}
|
||||
|
||||
// Change this value to test
|
||||
testElseIf(7);
|
||||
|
||||
```
|
||||
|
@@ -71,7 +71,6 @@ function testElse(val) {
|
||||
return result;
|
||||
}
|
||||
|
||||
// Change this value to test
|
||||
testElse(4);
|
||||
|
||||
```
|
||||
|
@@ -85,7 +85,6 @@ function orderMyLogic(val) {
|
||||
}
|
||||
}
|
||||
|
||||
// Change this value to test
|
||||
orderMyLogic(7);
|
||||
```
|
||||
|
||||
|
@@ -99,7 +99,7 @@ var myMusic = [
|
||||
],
|
||||
"gold": true
|
||||
}
|
||||
// Add record here
|
||||
// Add a record here
|
||||
];
|
||||
|
||||
```
|
||||
|
@@ -79,7 +79,6 @@ function sequentialSizes(val) {
|
||||
return answer;
|
||||
}
|
||||
|
||||
// Change this value to test
|
||||
sequentialSizes(1);
|
||||
|
||||
```
|
||||
|
@@ -61,7 +61,6 @@ function compareEquality(a, b) {
|
||||
return "Not Equal";
|
||||
}
|
||||
|
||||
// Change this value to test
|
||||
compareEquality(10, "10");
|
||||
```
|
||||
|
||||
|
@@ -84,7 +84,6 @@ function lookUpProfile(name, prop){
|
||||
// Only change code above this line
|
||||
}
|
||||
|
||||
// Change these values to test your function
|
||||
lookUpProfile("Akira", "likes");
|
||||
```
|
||||
|
||||
|
@@ -91,9 +91,7 @@ function updateRecords(id, prop, value) {
|
||||
return collection;
|
||||
}
|
||||
|
||||
// Alter values below to test your code
|
||||
updateRecords(5439, "artist", "ABBA");
|
||||
|
||||
```
|
||||
|
||||
</div>
|
||||
|
@@ -98,7 +98,6 @@ function chainToSwitch(val) {
|
||||
return answer;
|
||||
}
|
||||
|
||||
// Change this value to test
|
||||
chainToSwitch(7);
|
||||
|
||||
```
|
||||
|
@@ -68,7 +68,6 @@ function isLess(a, b) {
|
||||
// Only change code above this line
|
||||
}
|
||||
|
||||
// Change these values to test
|
||||
isLess(10, 15);
|
||||
```
|
||||
|
||||
|
@@ -68,7 +68,6 @@ function caseInSwitch(val) {
|
||||
return answer;
|
||||
}
|
||||
|
||||
// Change this value to test
|
||||
caseInSwitch(1);
|
||||
|
||||
```
|
||||
|
@@ -78,7 +78,6 @@ function trueOrFalse(wasThatTrue) {
|
||||
|
||||
}
|
||||
|
||||
// Change this value to test
|
||||
trueOrFalse(true);
|
||||
```
|
||||
|
||||
|
@@ -99,7 +99,6 @@ function phoneticLookup(val) {
|
||||
return result;
|
||||
}
|
||||
|
||||
// Change this value to test
|
||||
phoneticLookup("charlie");
|
||||
```
|
||||
|
||||
|
Reference in New Issue
Block a user