Open In App
Related Articles

HTML DOM console groupEnd() Method

Improve Article
Save Article
Like Article

The console.groupEnd() method in HTML is used to indicate the end of a group of messages in the console which has been created using the method. This method does not accept any parameter. 



Example: Below program illustrates the console.groupEnd() method in HTML


<!DOCTYPE html>
    <title>DOM console.groupEnd() Method</title>
        h1 {
            color: green;
    <h2>DOM console.groupEnd() Method</h2>
        To view the message in the console press the F12
        key on your keyboard.
            ("GeeksforGeeks offers the following courses:");"Courses");
        console.log("1. fork python");
        console.log("2. fork cpp");
        console.log("3. fork java");
        console.log("4. Interview preparation");
        console.log("GeeksforGeeks offers tutorials on the " +
                    "following data structures :");"Data Structures");
        console.log("1. Array");
        console.log("2. Linked List");
        console.log("3. Stack");
        console.log("4. Queue");


Supported Browsers: The browsers are supported by the console.groupEnd() method is listed below:

  • Google Chrome 2.0
  • Edge 12.0
  • Firefox 9.0
  • Opera 11.0
  • Safari 4.0

Last Updated : 03 Aug, 2023
Like Article
Save Article
Similar Reads
Related Tutorials