loading
main.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
function promiseWordAppender(word) { 
    return Promise.resolve(word);
}

let test1 = promiseWordAppender("It's a Bird...");

test1.then(function(result) {
            console.log(result);
            return result + "It's a plane...";
           }).then(function(result) { 
            console.log(result);
            return result + "No it's JavaScript Promises"
           }).then(function(result) { 
            console.log(result);
           });
Native Browser JavaScript