| [ Web Proxy ] |
| Viewing: https://developer.mozilla.org/ru/docs/Web/JavaScript/Reference/Errors/Stmt_after_return | [Back] [Original] |
Get to know MDN better
This page was translated from English by the community. Learn more and join the MDN Web Docs community.
Warning: unreachable code after return statement (Firefox)
: return (Firefox)
return :
returnreturn , . return, , return , .
return? return , , , , . return.
return , :
function f() {
var x = 3;
x += 4;
return x; //return ,
x -= 3; // ;
}
function f() {
return; // `return;`,
3 + 4; // ,
}
function f() {
var x = 3;
x += 4;
x -= 3;
return x; //OK: return
}
function f() {
return 3 + 4; //OK: return
}
This page was last modified on 7 . 2023 . by MDN contributors.
Your blueprint for a better internet.
Portions of this content are 19982026 by individual mozilla.org contributors. Content available under a Creative Commons license.
| Web Proxy Viewer | New URL | Original Page |