| [ Web Proxy ] |
| Viewing: https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Errors/Bad_return | [Back] [Original] |
Get to know MDN better
SyntaxError: Illegal return statement (V8-based) SyntaxError: return not in function (Firefox) SyntaxError: Return statements are only valid inside functions. (Safari)
return return
function cheer(score) {
if (score === 147)
return "";
}
if (score > 100) {
return "";
}
}
// SyntaxError: return not in function
if {
function cheer(score) {
if (score === 147) {
return "";
}
if (score > 100) {
return "";
}
}
| Web Proxy Viewer | New URL | Original Page |