Skip to content

Commit

Permalink
my first commit on nodejs
Browse files Browse the repository at this point in the history
  • Loading branch information
siddhuphp committed Nov 19, 2019
1 parent c7e600e commit 7b89146
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions nodejs_learning/first_test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
var http = require('http');

http.createServer(function(req,res){
res.writeHead(200,{'Content-Type':'text/html'});
res.end("Hello World");
}).listen(8080);
3 changes: 3 additions & 0 deletions nodejs_learning/myfirstmodule.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
exports.myDateTime = function(){
return Date();
};

0 comments on commit 7b89146

Please sign in to comment.