# warning()

Deprecated. Logs a warning to the browser's JavaScript console, if it is available.

## Signature

`warning (String w, Error e)`

## Parameters

***w*:** Type: `String`. The message to log.

***error*:** Type: `Object`. The error message to log in the stack trace.

## Returns

**Type: `String`** The requested value.
