element = document.querySelector('a') parentElement = element.parentNode;
const res = myelement.parentNode; // Returns parent node of myelement