of n will be in foo.
Right??
Nope, you want `const foo = await bar()` or `bar().then(foo => ...)`
Mohamed the then function expects a function as a parameter to deal with the promise. passing n => n means passing a function with n as a parameter and returning that same parameter without any processing
this is correct
Обсуждают сегодня