Advertisement
DEKTEN

TWITCH/STUDY/SANSTRIFA/001

May 29th, 2021
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. //: www.twitch.com/kanjicoder
  2.  
  3. var PORT = process.env.PORT || 5190 ;
  4. var http = require('http');
  5. var fs = require('fs' );
  6.  
  7. const ServerMain =function(){
  8. "use strict"
  9.  
  10. http.createServer( function(req,res){
  11.  
  12. res.writeHead(200,{"Content-Type":'text/html'});
  13. res.write("Hello World");
  14. res.end();
  15.  
  16. }).listen(PORT);
  17.  
  18. };;
  19.  
  20. ServerMain();
  21.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement