Javascript – Why promise state shows pending, when it has resolved to another promise
Below code snippet I have taken from the famous YDKJS - Async & Performance series, and have made a few changes for the sake of understanding. var p3 = new Promise( function(resolve,reject){ resolve( "B" ); } ); var p1 =…