function toggleVisibility(arr) {
  let toggleVisibility = arr.getAttribute("data-active") === "true";
  toggleVisibility = !toggleVisibility;
  arr.dataset.active = toggleVisibility;
}
//helper function to toggle visibility (of a mole) with the attribute of active true || false
helper function to toggle visibility (of a mole) with the attribute of active true || false
helper function to toggle visibility ( of a mole ) with the attribute of active true || false
function toggleVisibility(arr) {
  let toggleVisibility = arr.getAttribute("data-active") === "true";
  toggleVisibility = !toggleVisibility;
  arr.dataset.active = toggleVisibility;
}
function toggleVisibility ( arr ) { let toggleVisibility = arr . getAttribute ( "data-active" ) === "true" ; toggleVisibility = ! toggleVisibility ; arr . dataset . active = toggleVisibility ; }
helper function to toggle visibility (of a mole) with the attribute of active true || false
helper function to toggle visibility ( of a mole ) with the attribute of active true || false