Skip to content

Instantly share code, notes, and snippets.

View d4dilip's full-sized avatar
💭
Thinking of next Big Thing

Dilip Singh d4dilip

💭
Thinking of next Big Thing
View GitHub Profile
@d4dilip
d4dilip / Index.html
Created May 6, 2016 03:19
Javascript Promise Example
<!DOCTYPE html>
<html>
<!-- fallback for browsers which do not support promise -->
<script src="es6-promise.min.js"></script>
<script src="syncLib.js"></script>
<script src="asyncLib.js"></script>
<script>
function onSuccess(response)
var http = require('http');
var server=http.createServer();
server.on('request',function(req,resp){
resp.end('Hello from server');
});
server.listen(4005,'192.168.2.101');