<script> var x = 4; var y = 5; var z = x + y; z = x*y; document.getElementById('demo').innerHtml= z; system.print(z); </script> code example
Example: var x = 4; var y = 5; var z = x + y; z = x*y; document.getElementById('demo').innerHtml= z; system.print(z);
<button tyoe="button" onclick="documnt.getElemnetById('demo').innerHtml=Date()">
Click Me To Display Th Date And Times!
</button>