Why does executing a statement like var foo = 'bar' in browser console returns undefined? Returning undefined from a function by default makes sense, but returning something when you execute a statement doesn't make sense to me.
Thanks for taking time to answer the question. Appreciate it!