This is correct but the statement "the takeOrder function is returning nothing at all" is not entirely accurate. When a function does not have a `return` statement specified, it will return the primitive value of `undefined`.
If one wanted to be extremely pedantic about it, they could say the function still returns nothing, and that it's the JavaScript engine that returns the undefined when the result of executing the function produces no value.
But that would be really pedantic and doesn't really help anyone much, does it?
1
u/lemonizer Feb 03 '21
This is correct but the statement "the takeOrder function is returning nothing at all" is not entirely accurate. When a function does not have a `return` statement specified, it will return the primitive value of `undefined`.