How do we access an element's parent?

We set the parent's ID, then code document.getElementById() inside the scriptWe can't access itWe code document.createElement() in the scriptWe set the child's ID, then code document.getElementById() inside the script

We set the parent's ID, then code document.getElementById() inside the script.