You could create a function which wraps a function within try catch. Well, here's an example: // your own 3 functions function good1() { console.log("works"); } function bad() { throw "i throw somethuing"; } function good2(someParameter) { console.log("works with paraemter too.. =>", someParameter); } // takes in a function as parameter and executes // within a try catch block. // returns either result or the error. function runSafe(fn) { try { return fn(); } catch(error) { console.error(error); return null; } } // execute functions and get all results.. var results = [ runSafe(good1), runSafe(bad), runSafe(function() { return good2("Yes it does!"); } ]; // log results. // if an element is null, it means it's an error..^^ console.log(results);