7 Dec 2008
var cars = new Array( 'Saab' , 'Volvo', 'BMW', );
So I’ve taken to coding lists like this:
var cars = new Array( 'Saab' , ,'Volvo' ,'BMW' );
I’ve taken to using the same style pretty much everywhere I have a comma-separated list of things – it’s particularly helpful in SQL server stored procedures.
insert into t_users ( store_id , user_accesslevel , user_status , user_number , user_title , user_firstname , user_lastname ) values ( @store_id , @user_accesslevel , @user_status , @user_number , @user_title , @user_firstname , @user_lastname )