How to Exit from a Function in JavaScript

How to Exit from a Function in JavaScript