the follwong is the basic java script i wrote and its not working (giving the desired output as i wanted )
<html>
<head>
<title>hello </title>
</head>
<body>
<h1 align='center'> Using Arrays </h1>
<script language = "JavaScript">
emp = new array(5)
emp[0] = rahul
emp[1] = rahul1
emp[2] = rahul2
emp[3] = rahul3
emp[4] = rahul4
document.write(emp[0]+"<br>")
document.write(emp[1]+"<br>")
document.write(emp[2]+"<br>")
document.write(emp[3]+"<br>")
</script>
</body>
</html>
i have saved this file as jscp1.html
and i thought it will print all the array values , but it displayed only the header USING ARRAY is printed , rest all is just ignored by the browser.
Is there ne way to fix it , then how..?