Fortunately, there is an array of resources available to us to help guide us to the desired syntax. Let's review our options.
The Chrome Developer Tools console, and others such as Firebug, provides command-line completions. The console displays a dialog of possible completions. As shown in the following screenshot, we've entered
main.varCustomer.setD and the console is showing us all the members of the main page's
varCustomer object that ...