Use 'return await' in async functions - why?
The article discusses best practices in JavaScript programming, focusing on the use of the 'return await' construct. The author points out that using 'return await' in asynchronous functions can improve code clarity and behavior. However, it is noted that employing 'return await' is not always necessary. In situations where error handling is not needed, one can safely omit 'await'. The author provides examples showing how 'return await' can reduce code complexity and make debugging easier. Ultimately, the decision to use 'return await' should be based on the specific context and project needs, highlighting the flexibility of the JavaScript language.