1//for adding a link through JavaScript
2let anchor=document.createElement("a");
3anchor.href="_anylinkthatyouwanttoadd_";
4anchor.innerText="Go to the above link";//optional
5console.log(anchor)
6let to_add=document.getElementById("the-id-of-the-element-where-you-want-to-add")
7to_add.appendChild(anchor)