# Quick question on JQuery and functions

**URL:** https://forum.kirupa.com/t/quick-question-on-jquery-and-functions/306264
**Category:** web dev
**Created:** [March 11, 2010, 9:48pm UTC](https://forum.kirupa.com/t/quick-question-on-jquery-and-functions/306264 "2010-03-11T21:48:15Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![IQAndreas](https://avatars.discourse-cdn.com/v4/letter/i/f08c70/32.png) [@IQAndreas](https://forum.kirupa.com/u/IQAndreas)
#### Post date: [March 11, 2010, 9:48pm UTC](https://forum.kirupa.com/t/quick-question-on-jquery-and-functions/306264/1 "2010-03-11T21:48:15Z")

</div>

I’m just getting started with learning JQuery, and in the video tutorial I’m following, the writer uses conventions like this:

```auto
$(function() {
   //blablabla
});

```

I find that to be a little too many brackets, especially in event listeners, and I just find that code plain dirty.

Just wondering if it’s possible to do something similar to ActionScript, and instead pass in a reference to a function instead of defining a new one each and every time:

```auto
$(finishedLoading);

function finishedLoading() {
   //blablabla
}

```
