Functional Programming, JavaScript.
which cause side effects to occur. Calling this code looks like the following: try { var m = getMonthName(13); // do work with m } catch (e) { return e.message; } Also, this function violates referential transparency, for you can’t under any circumstances inline an exception statement as part of a