From 972d0adc1da49a4e0e70a03214327eb2171b7440 Mon Sep 17 00:00:00 2001 From: siddhuphp Date: Tue, 19 Nov 2019 17:54:57 +0530 Subject: [PATCH] I create my first module --- nodejs_learning/first_test.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nodejs_learning/first_test.js b/nodejs_learning/first_test.js index 1096aa8..ccc3037 100644 --- a/nodejs_learning/first_test.js +++ b/nodejs_learning/first_test.js @@ -1,6 +1,8 @@ var http = require('http'); +var dt = require('./myfirstmodule'); http.createServer(function(req,res){ res.writeHead(200,{'Content-Type':'text/html'}); + res.write("The date and time are currently: "+dt.myDateTime()); res.end("Hello World"); }).listen(8080); \ No newline at end of file