Console.log prints value and prints ‘undefined’?

when we provide the value in the console.log, it prints the given value and provides an undefined.

enter image description here

why there is an undefined after printing the value. if the return type of console.log is undefined, it should print before the given value gets printed.

Can anyone explain this scenario?