Change Content - Javascript
Change html element content using pure javascript author(s): Deepu Mohan Puthrote (WarFox)
HTML
<html>
<body>
<p id="data"></p>
<script>
const [name, age, income] = ["XYZ", 18, 500];
console.log(name);
console.log(age);
console.log(income);
document.getElementById("data").innerHTML = name + " " + income + + age;
</script>
</body>
</html>