Skip to content

Commit f84a713

Browse files
finished
1 parent 47d621e commit f84a713

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

more-on-functions/studio/part-one-find-minimum-value.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,5 @@ function findMinValue(arr) {
1515
return minValue;
1616
}
1717
//Using one of the test arrays as the argument, call your function inside the console.log statement below.
18-
let = minValue;czSqq2se
19-
function findMinValue (arr)
20-
{
2118

22-
console.log(/* your code here */);
19+
console.log(findMinValue(nums2));

more-on-functions/studio/part-three-number-sorting-easy-way.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/Sample arrays for testing:
1+
//Sample arrays for testing:
22
let nums1 = [5, 10, 2, 42];
33
let nums2 = [-2, 0, -10, -44, 5, 3, 0, 3];
44
let nums3 = [200, 5, 4, 10, 8, 5, -3.3, 4.4, 0];
@@ -15,4 +15,4 @@ nums1.sort(function(a, b){
1515
return b-a
1616
});
1717

18-
console.log(nums1);
18+
console.log(nums1);

more-on-functions/studio/part-two-create-sorted-array.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,4 @@ let nums1 = [5, 10, 2, 42];
4949
let nums2 = [-2, 0, -10, -44, 5, 3, 0, 3];
5050
let nums3 = [200, 5, 4, 10, 8, 5, -3.3, 4.4, 0];
5151

52-
console.log(sortArr(nums3));
52+
console.log(sortArr(nums3));

0 commit comments

Comments
 (0)