Easy Tutorial
❮ Jsref Regexp Charset Prop Track Kind ❯

HTML DOM console.info() Method

Console Object

Example

Output information to the console:


Definition and Usage

The console.info() method is used to output information to the console.

This method is helpful for testing during the development process.

Tip: The console needs to be visible during testing (open the console in the browser by pressing F12).


Syntax

console.info(message)

Browser Support

The numbers in the table specify the first browser version that fully supports the method.

Method
console.info() Yes 8.0 4.0 Yes Yes

Parameter Values

Parameter Type Description
message String or Object Required. The information to display on the console.

More Examples

Example

Using an object as the output information:

Example

Using an array as the output information:

Console Object

❮ Jsref Regexp Charset Prop Track Kind ❯