Home
<!DOCTYPE html> <html> <body> <h1>Demo: JavaScript Variables </h1> <p id="p1"></p> <script> const person = { name: 'Steve'}; person.name = "Bill"; document.getElementById("p1").innerHTML = person.name; </script> </body> </html>
Result: