Question

In my code I want to prevent other event handlers from executing.

I am always struggling to understand which of the following methods is the most appropriate, so in my own work I use all three (which works, without fail).

But which one is best and what are the differences?

My brute force approach:

$('#my-link').on('click', function(e) {
    // some logic.

    // brute force approach

    e.preventDefault();
    e.stopPropagation():

    return false;
});
Looking for a job?
Groundswell Cloud Solutions
Vancouver, Canada

Accenture
New York

JP/Morgan Chase
Dallas, Texas

Startup (stealth)
London, UK


Related
In Angular what is the difference between ngRoute and ui-router
What exactly does import and export do in JavaScript?
How to return multiple values from a function in ES6
Tip: assignments in ES6 vs ES5