Skip to content

Commit 33cd9d0

Browse files
committed
Pending changes exported from your codespace
1 parent fbb75b1 commit 33cd9d0

File tree

9 files changed

+35
-0
lines changed
  • .learn/resets
  • exercises

9 files changed

+35
-0
lines changed

Diff for: .learn/resets/01-Hello-World/app.js

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
// Your code here

Diff for: .learn/resets/02-What-is-a-function/app.js

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
function sum(number1,number2) {
2+
return number1 + number2;
3+
}
4+
5+
// Your code here

Diff for: .learn/resets/03-Call-a-function/app.js

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
function calculateArea(length, width) {
2+
return length * width;
3+
}
4+
5+
// Your code below this line:
6+
+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// Define the function called "multi" that expects 2 parameters:
2+
3+
4+
// Don't edit anything below this line
5+
let returnValue = multi(7,53812212);
6+
console.log(returnValue);

Diff for: .learn/resets/05-Anonymous-functions/app.js

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
let multi = function(a,b) {
2+
return a*b;
3+
}
4+
// Don't edit anything ABOVE this line
5+
6+
7+
// Your code here

Diff for: exercises/01-Hello-World/app.js

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
// Your code here
2+
console.log("Hello world");

Diff for: exercises/02-What-is-a-function/app.js

+2
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@ function sum(number1,number2) {
33
}
44

55
// Your code here
6+
let superduper = sum(3445324,53454423);
7+
console.log(superduper);

Diff for: exercises/03-Call-a-function/app.js

+3
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,7 @@ function calculateArea(length, width) {
33
}
44

55
// Your code below this line:
6+
let squareArea1 = calculateArea(4,4);
7+
let squareArea2 = calculateArea(2,2);
8+
let squareArea3 = calculateArea(5,5);
69

Diff for: exercises/04-Defining-vs-Calling-a-function/app.js

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
// Define the function called "multi" that expects 2 parameters:
22

3+
function Multi (num1, num2){
4+
return num1 * num2;
5+
6+
}
37

48
// Don't edit anything below this line
59
let returnValue = multi(7,53812212);

0 commit comments

Comments
 (0)