JavaScript Console info() Tutorial

In this section, we will learn what the console info() method is and how to use it in JavaScript.

JavaScript Console info() Method

The `info()` method stands for information and as the name suggests, this method is used to send info messages to a browser console.

Note: some of the browsers put a different color on the messages that are sent via the `info()` method to visually signal users that the message is not an error but information.

Console info() Method Syntax:

console.info(message)

Console info() Method Parameter:

The method takes one or more arguments and those are the messages that we want to send to the console.

Console info() Method Return Value:

The return value of this method is undefined.

Example: using Console info() method in JavaScript

console.info("This is a message coming from the info method.");

Output:

This is a message coming from the info method.
Facebook
Twitter
Pinterest
LinkedIn

Top Technologies