What is the basic concept behind hooks?

What is the basic concept behind hooks?

Working with JavaScript and jQuery | Drupal.org

Working with JavaScript and jQuery | Drupal.org

Working with JavaScript and jQuery | Drupal.org