portfolio/src/main/webapp/comments.js
// creates a button that acts like a link
creates a button that acts like a link
creates a button that acts like a link
function createLinkButton(text, link) {
  const button = document.createElement('button');
  button.innerText = text;
  button.onclick = function() {
    window.location.href = link;
  };
  return button;
}
function createLinkButton ( text , link ) { const button = document . createElement ( 'button' ) ; button . innerText = text ; button . onclick = function ( ) { window . location . href = link ; } ; return button ; }
creates a button that acts like a link
creates a button that acts like a link