# Source: https://github.com/quick-lint/quick-lint-js/blob/master/docs/errors/E0078.md

# E0078: missing expression between parentheses

```config-for-examples
{
  "globals": {
    "eatCookies": true,
    "loadConfig": true,
    "putAwayCookieJar": true,
    "takeCookiesFromCookieJar": true
  }
}
```

Parentheses (`(` and `)`) serve three purposes in JavaScript:

* grouping in expressions
* calling functions
* function parameters

It is a syntax error to write `(` immediately followed by `)` (with nothing
between) when grouping in expressions:

```javascript
function fma(a, b, c) {
  return () + c;
}

const config = ();

takeCookiesFromCookieJar()
  .then(cookies => eatCookies()
    .then(()));
```

To fix this error, write an expression between the parentheses:

```javascript
function fma(a, b, c) {
  return (a*b) + c;
}
```

Alternatively, put the name of a function before the parentheses to call a
function with no arguments:

```javascript
const config = loadConfig();
```

Alternatively, write the rest of your arrow function:

```javascript
takeCookiesFromCookieJar()
  .then(cookies => eatCookies()
    .then(() => putAwayCookieJar()));
```


Introduced in quick-lint-js version 0.2.0.