Javascript console.groupEnd() Method

Introduction

End a message group by using the console.groupEnd() method:

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

View in separate window

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

console.log("Hello world!");
console.group();
console.log("Hello again, this time inside a group!");
console.groupEnd();
console.log("and we are back.");

</script>//from   ww w.  j a v a 2s  .  c  o  m

</body>
</html>

The console.groupEnd() method indicates the end of a message group.




PreviousNext

Related