Skip to content

Commit 1044192

Browse files
problem 24 completed
1 parent e91ea36 commit 1044192

File tree

4 files changed

+25
-0
lines changed

4 files changed

+25
-0
lines changed

problem24/problem.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Write a function called foo() which prints "foo" and a function called bar() which prints "bar". Call function bar() in the foo() function after printing. What will be the output? Now call the foo() to see the output.

problem24/problem24.js

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
/* Write a function called foo() which prints "foo"
2+
and a function called bar() which prints "bar".
3+
Call function bar() in the foo() function after printing.
4+
What will be the output? Now call the foo() to see the output. */
5+
6+
7+
8+
9+
function bar(){
10+
11+
return "bar";
12+
};
13+
14+
function foo(){
15+
16+
console.log( "foo");
17+
return bar();
18+
};
19+
20+
console.log(foo());
21+

problem25/problem.md

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
2+
Write a function called make_avg() which will take an three integers and return the average of those values.

problem26/problem.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Challenging: Write a function called make_avg() which will take an array of integers and the size of that array and return the average of those values.

0 commit comments

Comments
 (0)