Another thing you can do, when the then statement takes only one function with the return of the promise as its only parameter, is to just write its name, something like this:
Yeah I usually do that as well, and in a sense that may have led me to believe then(console.log('smth')) would be okay. Subtle but makes all the difference.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Another thing you can do, when the
then
statement takes only one function with the return of the promise as its only parameter, is to just write its name, something like this:Yeah I usually do that as well, and in a sense that may have led me to believe
then(console.log('smth'))
would be okay. Subtle but makes all the difference.