how get parent element javascript

JavaScript
var parent = document.getElementById("myElement").parentElement; 
Source

Also in JavaScript: