function checkForm() {
  const comment = document.getElementById("comments-box").value;
  if (comment === "") {
    return false;
  }
  return true;
}
/**
 * Validates that the comment is not empty before making POST request.
 */
Validates that the comment is not empty before making POST request.
Validates that the comment is not empty before making POST request .
function checkForm() {
  const comment = document.getElementById("comments-box").value;
  if (comment === "") {
    return false;
  }
  return true;
}
function checkForm ( ) { const comment = document . getElementById ( "comments-box" ) . value ; if ( comment === "" ) { return false ; } return true ; }
Validates that the comment is not empty before making POST request.
Validates that the comment is not empty before making POST request .