Javascript innerHTML property is used to set or get the inner HTML of the specific element.
Let us understand it with the help of an example.
Source Code
const elem = document.getElementById("result");
alert(elem.innerHTML);