function fetchAndModify(path, element) {
  fetch(path)
      .then(response => response.text())
        .then(content => element.innerHTML = content);
}
/**
 * Get response from url and modify given element innerHtml.
 * @param {string} path - the path the given query refers to
 * @param {DOM element} element - an element in the DOM for selecting
 */
Get response from url and modify given element innerHtml.
@param {string} path - the path the given query refers to
@param {DOM element} element - an element in the DOM for selecting
Get response from url and modify given element innerHtml . @param { string } path - the path the given query refers to @param { DOM element } element - an element in the DOM for selecting
function fetchAndModify(path, element) {
  fetch(path)
      .then(response => response.text())
        .then(content => element.innerHTML = content);
}
function fetchAndModify ( path , element ) { fetch ( path ) . then ( response => response . text ( ) ) . then ( content => element . innerHTML = content ) ; }
Get response from url and modify given element innerHtml.
Get response from url and modify given element innerHtml .