NodeJS uses Promise to encapsulate asynchronous functions
During the process of writing Node.js, continuous IO operations may lead to "pyramid nightmare". The multiple nesting of callback functions makes the code difficult to maintain. CommonJs' Promise is used to encapsulate asynchronous functions
2025-05-26














