Javascript console.info() Method display object

Introduction

Using an object as the message:

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

View in separate window

<!DOCTYPE html>
<html>
<body>
<script>
var myObj = { firsname : "CSS", lastname : "HTML" };
console.info(myObj);
</script>//from   w  w w .  ja  va  2 s  . com
</body>
</html>



PreviousNext

Related