Monday, June 29, 2015

console.log("foo", "bar", "baz", "qux");

Adding extra parameters to console.log in JavaScript will just ask it to log extra things. All of the things logged will appear horizontally on the same line sequentially as they were handed in with a single space between each item like so:

foo bar baz qux

No comments:

Post a Comment