Why does Javascript console nearly allways returns undefined? [closed]

For example at this code in the image:

enter image description here

After alert undefined
After variable declaration with let or var undefined
While after just c = 3 it returns 3

What exactly the Javascript console after every line returns and why c = 3 returns 3 even if it considered variable declaration..