var pacientes = document.querySelectorAll(".paciente");
console.log(pacientes);
pacientes.forEach(function(pacienteTr) {
pacienteTr.addEventListener("dblclick", removerPaciente);
});
function removerPaciente(evento) {
this.remove();
//Assim não funciona. Remove apenas o td.
//evento.target.remove();
// Faz o mesmo que o this.remove();
//evento.currentTarget.remove();
}
Gostaria de saber a diferença entre currentTarget e target.