console.info()

Outputs an informational message to the console.

Since ES5 Spec ↗

Syntax

console.info(...data)

Returns

undefined — Returns `undefined`.

Examples

console.info("Server started on port 3000");
Output
Server started on port 3000
console.info("User %s logged in", "ada");
Output
User ada logged in

Notes

- Functionally equivalent to `console.log()` in most environments. - Browsers may show an info icon and allow filtering by level.

Browser & runtime support

EnvironmentSince version
chrome 1.0
firefox 1.0
safari 1.0
edge 12
node 0.10

See also