var temp = 'Hello';
And trying to set the value of object temp in the page to the value of variable temp.
document.getElementById('temp').innerHTML = temp;
Anyway here is a simple example showing a text in a web page using JScript.
- Both languages are easy to learn and do not require any expensive development tools.
- Both can be used to enhance web pages.
- Both can abuse and run malicious scripts on clients' machines.