Skip to content

Instantly share code, notes, and snippets.

View jyotman's full-sized avatar

Jyotman Singh jyotman

View GitHub Profile
'use strict';
function square(num) {
return new Promise(function(resolve, reject) {
if (num > 10)
reject('Yo error bro!');
else
setTimeout(function() { resolve(num * num) }, 2000);
});
}
@jyotman
jyotman / hosts
Created December 12, 2023 16:12
Hosts test
127.0.0.1 goal.com
127.0.0.1 www.goal.com