Archive of Department of Computing

Which is the correct way to write a JavaScript array? A. var txt = new Array(1:"tim",2:"kim",3:"jim") ... To get the third element of the array we have to use the index number 2 . Here is the way to get the third element of an array. ... How to write a script for "Select" lists using javascript 1. To remove an item from a list set it to null ... ................
................