how to write a value of a js variable to an html element code example Example: js variable html <div onload="document.innerHTML(name + ' is ' + age)">