YouTip LogoYouTip

Met Console Info

# HTML DOM console.info() Method [![Image 3: Console Object](#) Console Object](#) ## Example Output information to the console: console.info("Hello Tutorial!"); [Try it Β»](#) * * * ## 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. **Note:** To test this method, the console needs to be visible (press F12 in the browser to open the console). * * * ## 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 message to be displayed in the console. | * * * ## More Examples ## Example Use an object as the output message: var myObj = {name : "", site : "www."}; console.info(myObj); [Try it Β»](#) ## Example Use an array as the output message: var myArr = ["Google", "Taobao", "Tutorial", "Facebook"]; console.info(myArr); [Try it Β»](#) [![Image 4: Console Object](#) Console Object](#)
← Met Console TableMet Console Groupcollapsed β†’