Approach 1: In this approach, getElementsByClassName() selector is used to select elements of specific class. Child node: This is a node that is directly inside another node. The children return all child In this example, we are using the document.createElement() method to create a new button element. Which one you choose is merely a question of style afaict. The document.createElement() method creates the element with the given name and returns it as a Node object. A