Javascript console.info() Method

Introduction

Write a message to the console:

console.info("Hello world!");

Press F12 on your keyboard to view the message in the console view.

View in separate window

<!DOCTYPE html>
<html>
<body>
<script>

console.info("Hello world!");

</script>/*ww w . ja  va 2 s. c  om*/

</body>
</html>

The console.info() method writes a message to the console.


console.info(message);

Parameter Values

Parameter Type Description
message String or Object Required. The message or object to write in the console



PreviousNext

Related