portfolio/src/main/webapp/comments.js
// creates tag 'No comments yet' and adds it to DOM
creates tag 'No comments yet' and adds it to DOM
creates tag ' No comments yet ' and adds it to DOM
function createNoCommentsTag() {
  const noCommentsTag = document.createElement('p');
  noCommentsTag.innerText = 'No comments yet';
  document.getElementById('comments').appendChild(noCommentsTag);
}
function createNoCommentsTag ( ) { const noCommentsTag = document . createElement ( 'p' ) ; noCommentsTag . innerText = 'No comments yet' ; document . getElementById ( 'comments' ) . appendChild ( noCommentsTag ) ; }
creates tag 'No comments yet' and adds it to DOM
creates tag ' No comments yet ' and adds it to DOM