I am using node.js.
rows is an object. I want to see the contents of the object.
console.log("Contents of rows: ");
console.log(rows);
The above code works. Then, I took a short-cut and use
console.log("Contents of rows: " + rows);
Now, this does not work. Is it possible to have the above work in a single line?
console.log("Contents of rows: ", rows);. By concatenating an object, the object is converted into a string.