Specifying a label for the message group:
Press F12 on your keyboard to view the message in the console view.
<!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>