Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Gus Suarez
    @aerze
    ```js
    this.link = function (href, text) {
    var link = document.createElement('a');
    link.setAttribute('href', href);
    link.appendChild(this.textNode(text));
    return link;
    };
    // make function called link
    this.link = function (href, text) {
            var link = document.createElement('a');  //Create a new HTML Element
                link.setAttribute('href', href);  //set the href attribute to whatever is in the href var
                link.appendChild(this.textNode(text));  //set the text in the HTML Element in to the text var
            return link; //return the Element to be injected into the page
        };