10.4.1.3. Возврат завершает выполнение функции
/*This console.log statement in this function never executes, since the
function returns before it is reached.*/
function pastThePointOfReturn() {
return "I'm done!";
console.log("This will not be printed");
}
console.log(pastThePointOfReturn());
//I'm done!
Tough Tortoise