var result_data = ''; var result = someClass.someFunction(params).then(function(result) { result_data = result; start(); }); function start(){ console.log(result_data); }