Skip to content

Commit

Permalink
added successful hello_world lesson and test in tests directory
Browse files Browse the repository at this point in the history
  • Loading branch information
stevekane committed Dec 3, 2013
1 parent 8bdb411 commit 6603ef3
Show file tree
Hide file tree
Showing 9 changed files with 23 additions and 2 deletions.
3 changes: 1 addition & 2 deletions menu.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
[
"Callbacks",
"Promises"
"hello_world"
]
Binary file added problems/hello_world/.problem.txt.swp
Binary file not shown.
Binary file added problems/hello_world/.setup.js.swp
Binary file not shown.
Binary file added problems/hello_world/.solution.js.swp
Binary file not shown.
17 changes: 17 additions & 0 deletions problems/hello_world/problem.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
Write a program that prints "HELLO WORLD"

-----------------------------------------------------
HINTS:

To make a Node.js program, creat blah blah blah....

You can write to the console the same way as in the browser:

console.log("text")

When you are done, you must run:

{appname} verify myprogram.js

Your program will be tested, a report will be generated,
and the lesson will be marked "completed" if you are successful.
3 changes: 3 additions & 0 deletions problems/hello_world/setup.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = function () {
return {};
}
1 change: 1 addition & 0 deletions problems/hello_world/solution.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
console.log("HELLO WORLD");
Binary file added tests/.hello_world.js.swp
Binary file not shown.
1 change: 1 addition & 0 deletions tests/hello_world.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
console.log("HELLO WORLD");

0 comments on commit 6603ef3

Please sign in to comment.