how to declare a variable in javascript and use it in html code example
Example 1: js variable html
<div onload="document.innerHTML(name + ' is ' + age)">
Example 2: javascript variables
// Also let, const
var e_number = 0;
var e_string = '';
var e_true = true;
var e_false = false;
var e_undefined = undefined;