getElement(). code example
Example 1: javascript get element by id
var element = document.getElementById("YourElementId");
Example 2: javascript getelementbyid
const element = document.getElementById('id');
//or
const element = document.querySelector('#id');