Promise

Run Settings
LanguageJavaScript
Language Version
Run Command
function createValidator(delay){ return new Promise((resolve, reject) => { setTimeout(function(){ resolve({a: 1, b: 'done'}); }, delay); }); } const validator = createValidator(3000); validator.then( value => { console.log(value); });
Editor Settings
Theme
Key bindings
Full width
Lines