End a group by using the console.groupEnd()
method:
Press F12 on your keyboard to view the message in the console view.
<!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 ava 2 s .c o m*/ </body> </html>