---
hide_title: false
hide_table_of_contents: false
pagination_next: null
pagination_prev: null
---
# console.warn()

The **`console.warn()`** method outputs a warning message to the console.

## Syntax

```js
warn(obj1)
warn(obj1, /* …, */ objN)
```

### Parameters

- `obj1` … `objN`
  - : A list of JavaScript objects to output. The string representations of each of these
    objects are appended together in the order listed and output.

### Return value

None `undefined`.
