You can add different default values to your JavaScript functions with a simple trick. Let’s see how it works....