You are likely running this in the browser's console. It is printing the returned value after calling console.log().

console.log() returns undefined. What undefined is is a whole other question. Suffice it to say, with respect to this instance, it is the default value returned by a function that has no explicit return statement.
You asked:
so basically every time i call a function that returns void (in this
case console.log()) i will get this evaluation, right? undefined.
Don't confuse void and undefined. They are not the same. You can't even return void, it's a keyword for an operator: void operator. If you try to return it, you'll get a syntax error.
If a function that you define does not provide an explicit return, it will return undefined by default:
function foo(){
var a = 2 + 2;
}
var bar = foo(); // bar has the value "undefined"
undefined is rather ironic, because it is a special, defined value. You can do comparisons with it, you can assign things to it, you can return it explicitly. It is a special falsy value.
undefinedpart in the Chrome console: jsfiddle.net/8zw3w41tundefined. Worked fine.Array [5]