Home javascript Forced completion of the JavaScript function

Forced completion of the JavaScript function

Author

Date

Category

Tell me, please! How to make a forced way out of the function, for example:

function some () {
   var a = 3;
   if (a == 1) {
     a = 2;
   } else {
     // Here exit from the function, i.e. Any () launch will not be
   }
   Any ();
}

Answer 1, Authority 100%

Exit Function:

Return;

Programmers, Start Your Engines!

Why spend time searching for the correct question and then entering your answer when you can find it in a second? That's what CompuTicket is all about! Here you'll find thousands of questions and answers from hundreds of computer languages.

Recent questions