var test = new Promise(function(resol, rejec){
$.get('https://codingapple1.github.io/hello.txt ').done(function(결과){
resol(결과);
})
});
test.then(function(결과){
console.log(결과)
$.get('https://codingapple1.github.io/hello2.txt ').done(function(결과){
}).then(function(결과){
console.log(결과)
}).then(function(){
console.log('끝')
})
})
저는 이렇게 코드를 작성해 봤는데, 선생님의 코드랑은 모양이 좀 다른것같아서 피드백을 받고싶습니다.