Solved
For certain conditions, how to terminate the code without throwing error.
For certain conditions, how to terminate the code without throwing error.
For certain conditions, how to terminate the code without throwing error.
Hi,
put your whole code in a self-executing function block and "return" if you want to end the execution.
const result = (function() {
// Your code here
// To end it all, simply "return"
})();
Or if you prefer the arrow function syntax:
const result = (() => {
// Your code here
})();
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.