I know the results but I want to know more in-depth. Is that mean in Javascript functions, no return
statement identical to return undefined
?
It is in effect, yes. The specification differentiates between the two, but in pragmatic terms, calling a function that "falls off the end" vs. return;
vs. return undefined;
all have exactly the same end result in terms of what have the call results in: undefined
.
In my answer to the dupetarget (I should have realized!) I explain how the spec differentiates them, but again, it's just a spec distinction, not something you can observe in actual code.