I am using the console.log statement for debugging , but came across a scenario where using \',\' or \'+\' with console.log statement is logging the output in different pat
+(string concatenation operator) with object will call the toString method on the object and a string will be returned.
So, '' + object is equivalent to object.toString(). And toString on object returns "[object Object]".
With , the object is passed as separate argument to the log method.