We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I think you should not write code as below:
if (err) return statusMessage.value = err
There will throw some error like: Uncaught SyntaxError: Illegal return statement
Uncaught SyntaxError: Illegal return statement
File Path: callback-hell/index.html
The text was updated successfully, but these errors were encountered:
Then, how should be written this code?
Sorry, something went wrong.
We cannot return a assignment, if you do and you will get an error as above. So, you just need change returns as below.
if (err) { statusMessage.value = err return statusMessage.value }
No branches or pull requests
I think you should not write code as below:
if (err) return statusMessage.value = err
There will throw some error like:
Uncaught SyntaxError: Illegal return statement
File Path:
callback-hell/index.html
The text was updated successfully, but these errors were encountered: