Arrays

clang232clang232 BeginnerLink Clerk
I'm having trouble with Array's, I just can't get them to work for me.
var mycars=new Array(3)


mycars[0]="Saab"
mycars[1]="Volvo"
mycars[2]="BMW"

document.write(mycars[0])

I wrote this down from the www.w3schools.com, and nothing shows up in the browser.

Comments

Sign In or Register to comment.