Closure and Async/Awaits
Closure: A closure is when an inner function remembers and can access variables from its outer function, even after the outer function has finished executing.
Async/Await: async makes a function return a Promise, while await pauses execution inside that async function until a Promise settles, allowing asynchronous operations to be handled more easily.
原文:https://www.a8q9.cn/en/article/closure-and-async-awaits-71135c.html