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)
Written by Cycododge
Related protips
1 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
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Console
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#