Hey all,
I'm putting together a web-app that creates DOM elements from an array and I'm having trouble getting my array to work properly...
Here's what I've got, maybe some fresh eyes could help me out
When I load the page I get a:
Error: syntax error
Source File: http://localhost/vehicle.load.js
Line: 5
Source Code:var application0 = new Array ();
Code:window.onload = loadVehicles; function loadVehicles() { var application0 = new Array (); application0[0] = "Volkswagen"; application0[1] = "Rabbit"; application0[2] = "1980 - 1984"; var application1 = new Array (); application1[0] = "Volkswagen"; application1[1] = "Rabbit GTI"; application1[2] = "1983 - 1984"; }



Reply With Quote

Bookmarks