Javascript console.table() Method display object

Introduction

Using an object as the first parameter:

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

View in separate window

<!DOCTYPE html>
<html>
<body>
<script>
console.table({ firstname : "John", lastname : "Doe" });
</script>//from  w w w . java 2 s  .  c o  m
</body>
</html>



PreviousNext

Related