Exit from javascript function

is there any way that user can exit from javascript function without using return statement?

throw an exception, or just don’t use return at all.

Why don’t you want to use the return statement?

You don’t have to return a value, you can just ‘return’:

function myFunction() {
    // Do stuff.

JavaScript 1.7 includes a yield statement but I doubt that’s what you’re looking for.