Answers for "how to aadd variable in html tag in js"

0

how to aadd variable in html tag in js

window.onload = function() {
  var name = prompt("What's your name?");
  var lengthOfName = name

  document.getElementById('output').innerHTML = lengthOfName;
};
Posted by: Guest on March-23-2021

Code answers related to "how to aadd variable in html tag in js"

Code answers related to "Javascript"

Browse Popular Code Answers by Language