Skip to content

Commit 8d499a4

Browse files
committed
add javascript
1 parent 5748552 commit 8d499a4

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/*
2+
Write a function createHelloWorld. It should return a new function that always returns "Hello World".
3+
*/
4+
5+
const createHelloWorld = () => () => "Hello World";
6+
7+
const f = createHelloWorld();
8+
console.log(f());

0 commit comments

Comments
 (0)