console.log helper function I've seen the code for this function in John Resig's book 'Secrets of JavaScript Ninja' yesterday. 

I considered it useful at once because I've disliked repeatedly typing console.log for some time.

Here's my implementation of a helper function to reduce typing:

// -- Function definition -------------
// Helper function for to simplify the 
//  usage of console.log().
// -- Parameter -----------------------
//  Pass as many parameter as you like.
//  Separate them with commas.
function l() {
  console.log.apply(console, arguments);
}


Usage examples:

var car = new Car(180, 'Fiat');
var someArbitraryNumber = 248;

l('My car', car, ' - ', someArbitraryNumber);

l(123, 'abc', false, 248, 'A', ' &gt; --- &lt; ')


Output: 




My car Car { color="red",  maxFuel=40,  speed="180 km"}  - 248

123 abc false 248 A  &gt; --- &lt;



What's great about it: instead of typing console.log(...), you can type l(...); much quicker! This simple helper behaves exactly like console.log. For example, the parameters can be any mixture of types, and objects printed on your browser console can be expanded to see their content, they aren't converted to string representations.

If there are any ideas to improve / enhance the function I would be pleased to get that feedback.
l is a terrible name for anything. Depending on the font used, it may be indistinguishable from the number one. It's generally recommended to avoid using the letter "l" for anything. (In some languages this recommendation is part of the official style guide.)

log would be better, still short, and with a more obvious meaning than just "l".