Skip to content

Commit

Permalink
creating server using arrow function
Browse files Browse the repository at this point in the history
  • Loading branch information
codingXpert committed Jun 19, 2022
1 parent 3319c99 commit a9d8e1a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions server-using-arrow-fucn.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
const http = require('http');

const dataControl = (req , res) => {
res.write("<h1>Server is running on Port 8000</h1>");
res.end();
}
http.createServer(dataControl).listen(8000);

0 comments on commit a9d8e1a

Please sign in to comment.