Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function hogeAsync(callback){
- setTimeout(function(){
- callback(10);
- }, 10000);
- }
- var one = null;
- Promise(function(resolve, reject){
- hogeAsync(resolve);
- }).then(function(value){
- one = value;
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement