Wrapping JavaScript functions lets you add common logic to functions you do not control, like native and external functions.