I have a very basic JavaScript question.
I am writing a program which will generate JavaScript code. for accessing a property of a variable i have two choices:
There are no static properties in Javascript, only dynamic property accessing exists.
Properties are always queried in the same way regardless of what syntax you put in your source code file.
Use jshint to recommend good source code conventions for your JS files:
http://jshint.com/
Dot notation is always recommended. Use quotation mark notation only if your Javascript property has not id which passes in JS syntax.