You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constwaterfall=function(promises){returnpromises.reduce(function(p,c){// Waiting for `p` completedreturnp.then(function(){// and then `c`**returnc().then(function(result){**returntrue;});});},// The initial value passed to the reduce methodPromise.resolve([]));};
line 61 trong bài posts/load-a-javascript-file-dynamically.md có vẻ đang sai anh ơi, c là 1 Promise nên mình .then luôn ạ, mình đang gọi c như 1 hàm nên code báo lỗi
The text was updated successfully, but these errors were encountered:
line 61 trong bài posts/load-a-javascript-file-dynamically.md có vẻ đang sai anh ơi, c là 1 Promise nên mình .then luôn ạ, mình đang gọi c như 1 hàm nên code báo lỗi
The text was updated successfully, but these errors were encountered: