Forums > Javascript

Javascript – use a variabel to call up an object

May 6, 2012 | 9:15 am

I was trying to feed an objects name into a variabel and then use the variabel to interrogate the objects properties. Any idea why this concept is not working?

Attachments:
  1. train4.js

May 7, 2012 | 4:42 am

Here is the solution.

Attachments:
  1. train4.js

Viewing 2 posts - 1 through 2 (of 2 total)