Javascript console.group() Method add label

Introduction

Specifying a label for the message group:

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

View in separate window

<!DOCTYPE html>
<html>
<body>
<p>A message group with a label.</p>
<script>

console.log("Hello world!");
console.group("myLabel");
console.log("Hello again, this time inside a group, with a label!");

</script>/*from  ww  w .  j  a  v  a2  s. com*/

</body>
</html>



PreviousNext

Related