Why does console.log("hello") inside console return undefined? : <p>Out of curiosity, why does writing <code>console.log("hello")</code> inside console return undefined?</p>

<p>Is it for the same reasons in defining void function in C?</p>

<p><a href="https://i.stack.imgur.com/uonpR.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/uonpR.png" alt="enter image description here"></a></p>
