what is id in javascript code example Example: reference id in javascript document.getElementById("demo");