Last Updated: February 25, 2016
·
595
· cycododge

Logging Stuff with JS

When you are logging many parts of your code, it's helpful to know what each line output represents. The log function can actually take two an unlimited amount of parameters.

console.log('Incoming Data',{'my':'data'});

console.log(1,2,3,'foo','bar','baz',[], {} ,window);

Updated per alebles response! (6/28/2013)

1 Response
Add your response

The Log actually outputs every parameter you put in

console.log(1,2,3,'foo','bar','baz',[], {} ,window);
https://developer.mozilla.org/en-US/docs/Web/API/console.log

over 1 year ago ·