| [ Web Proxy ] |
| Viewing: https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Errors/Stmt_after_return | [Back] [Original] |
Get to know MDN better
return JavaScript unreachable code after return statement
Warning: unreachable code after return statement (Firefox)
return
return return return
return return return return
return
function f() {
let x = 3;
x += 4;
return x; // return
x -= 3; //
}
function g() {
return // `return;`
3 + 4; //
}
function f() {
let x = 3;
x += 4;
x -= 3;
return x; // OK
}
function g() {
return 3 + 4 // OK
}
| Web Proxy Viewer | New URL | Original Page |