do javascript functions need return?
3 Answers. No; Javascript functions are not required to return a value. If you call a function that doesn't return a value, you'll get undefined as the return value.