Answers for "how to declare a variable in javascript and use it in html"

-2

js variable html

<div onload="document.innerHTML(name + ' is ' + age)">
Posted by: Guest on April-14-2020
0

javascript variables

// Also let, const
var e_number = 0;
var e_string = '';
var e_true = true;
var e_false = false;
var e_undefined = undefined;
Posted by: Guest on October-04-2020

Code answers related to "how to declare a variable in javascript and use it in html"

Browse Popular Code Answers by Language