Knowledge baseExam Center
ENEnglish
Choose language13

CKTIS / JavaScript

console.info — informational messages

console.info sends data to the console at the informational level; its presentation depends on the implementation.

Version: ECMAScript and Web APIs; exact feature edition and browser support reviewed per entry; Node 24 in repository does not prove browser API support

Syntax

console.info(...data)

console.info(...data) is a Console standard API, not part of ECMAScript itself. It accepts any number of arguments of any type and returns undefined. Without arguments, it prints nothing.

The first argument can contain formatting specifiers. If the next argument is a Symbol, %d produces NaN. Otherwise, %d behaves like parseInt(value, 10), where value is that argument. For example, the string "abc" also produces NaN. The example prints Items: 3.

Unlike console.log, it uses the info level, not log. Message appearance is implementation-defined; console filters can hide it.

Examples

console.info("Items: %d", 3);

Result

Items: 3

The displayed code and declared result were verified in an isolated environment using the method recorded in the verification evidence for this exact version.

Sources